Skip to content

Commit 9ae5c10

Browse files
committed
sync github action files with tfmod-scaffold
1 parent 7d8493d commit 9ae5c10

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/acc-test.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,16 @@ on:
1111
- '**/go.mod'
1212

1313
jobs:
14+
runner-select:
15+
runs-on: ubuntu-latest
16+
outputs:
17+
runner: ${{ steps.runner.outputs.runner }}
18+
steps:
19+
- id: runner
20+
run: echo "runner=[self-hosted, 1ES.Pool=${{ github.event.repository.name }}]" >> $GITHUB_OUTPUT
1421
acc-tests:
15-
runs-on: [self-hosted, 1ES.Pool=terraform-azurerm-vnet]
22+
needs: [runner-select]
23+
runs-on: ${{ needs.runner-select.outputs.runner }}
1624
environment:
1725
name: acctests
1826
steps:

.github/workflows/pr-check.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,12 @@ on:
1313
jobs:
1414
prepr-check:
1515
runs-on: ubuntu-latest
16-
permissions:
17-
pull-requests: write
1816
steps:
1917
- name: checkout
2018
uses: actions/checkout@v3
2119
- name: pr-check
2220
run: |
23-
docker run --rm -v $(pwd):/src -w /src -e SKIP_CHECKOV -e TFLINT_CONFIG=.tflint_alt.hcl mcr.microsoft.com/azterraform:latest make pr-check
21+
docker run --rm -v $(pwd):/src -w /src -e SKIP_CHECKOV mcr.microsoft.com/azterraform:latest make pr-check
2422
- name: Set up Go
2523
uses: actions/setup-go@v3
2624
with:

0 commit comments

Comments
 (0)