Skip to content

Commit de1ccdc

Browse files
authored
Fix terratest workflow (#221)
1 parent 98a8a4e commit de1ccdc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/shared-terraform-chatops.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,6 @@ jobs:
210210
make -C test/src clean init
211211
rm -rf examples/*/.terraform examples/*/.terraform.lock.hcl
212212
213-
- uses: actions/create-github-app-token@v2
214-
if: ${{ needs.context.outputs.uses_github == 'true' }}
215-
id: github-app
216-
with:
217-
app-id: ${{ vars.BOT_GITHUB_APP_ID }}
218-
private-key: ${{ secrets.BOT_GITHUB_APP_PRIVATE_KEY }}
219-
owner: 'cloudposse-tests'
220-
221213
- name: Config
222214
shell: bash
223215
id: config
@@ -252,6 +244,14 @@ jobs:
252244
echo "uses_tfe=${USES_TFE}" >> $GITHUB_OUTPUT
253245
echo "uses_cloudflare=${USES_CLOUDFLARE}" >> $GITHUB_OUTPUT
254246
247+
- uses: actions/create-github-app-token@v2
248+
if: ${{ needs.config.outputs.uses_github == 'true' }}
249+
id: github-app
250+
with:
251+
app-id: ${{ vars.BOT_GITHUB_APP_ID }}
252+
private-key: ${{ secrets.BOT_GITHUB_APP_PRIVATE_KEY }}
253+
owner: 'cloudposse-tests'
254+
255255
- name: "Inject secrets"
256256
env:
257257
USES_GITHUB: ${{ steps.config.outputs.uses_github }}

0 commit comments

Comments
 (0)