From b70adb596fda50229e64ed509afa922487e19d13 Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Mon, 11 Nov 2024 08:22:00 -0800 Subject: [PATCH] fix: Set environment variables at job level --- .github/workflows/dependencyBot.yml | 42 +++++++++-------------------- 1 file changed, 12 insertions(+), 30 deletions(-) diff --git a/.github/workflows/dependencyBot.yml b/.github/workflows/dependencyBot.yml index 097177117..5f9f61729 100644 --- a/.github/workflows/dependencyBot.yml +++ b/.github/workflows/dependencyBot.yml @@ -8,12 +8,9 @@ jobs: # PRs must be closed and re-opened to trigger checks - see here: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs CAMB: runs-on: ubuntu-latest + env: + appid: ${{ secrets.DEPLOY_APP_ID }} steps: - - name: Check for app ID - env: - appid: ${{ secrets.DEPLOY_APP_ID }} - run: | - echo Set environment with app ID - uses: actions/checkout@v4 - uses: tibdex/github-app-token@v2 if: ${{ env.appid != '' }} @@ -43,12 +40,9 @@ jobs: token: ${{ steps.generate-token.outputs.token }} forutils: runs-on: ubuntu-latest + env: + appid: ${{ secrets.DEPLOY_APP_ID }} steps: - - name: Check for app ID - env: - appid: ${{ secrets.DEPLOY_APP_ID }} - run: | - echo Set environment with app ID - uses: actions/checkout@v4 - uses: tibdex/github-app-token@v2 if: ${{ env.appid != '' }} @@ -78,12 +72,9 @@ jobs: token: ${{ steps.generate-token.outputs.token }} CLASS: runs-on: ubuntu-latest + env: + appid: ${{ secrets.DEPLOY_APP_ID }} steps: - - name: Check for app ID - env: - appid: ${{ secrets.DEPLOY_APP_ID }} - run: | - echo Set environment with app ID - uses: actions/checkout@v4 - uses: tibdex/github-app-token@v2 if: ${{ env.appid != '' }} @@ -114,12 +105,9 @@ jobs: token: ${{ steps.generate-token.outputs.token }} FSPS: runs-on: ubuntu-latest + env: + appid: ${{ secrets.DEPLOY_APP_ID }} steps: - - name: Check for app ID - env: - appid: ${{ secrets.DEPLOY_APP_ID }} - run: | - echo Set environment with app ID - uses: actions/checkout@v4 - uses: tibdex/github-app-token@v2 if: ${{ env.appid != '' }} @@ -149,12 +137,9 @@ jobs: token: ${{ steps.generate-token.outputs.token }} Cloudy: runs-on: ubuntu-latest + env: + appid: ${{ secrets.DEPLOY_APP_ID }} steps: - - name: Check for app ID - env: - appid: ${{ secrets.DEPLOY_APP_ID }} - run: | - echo Set environment with app ID - uses: actions/checkout@v4 - uses: tibdex/github-app-token@v2 if: ${{ env.appid != '' }} @@ -190,12 +175,9 @@ jobs: token: ${{ steps.generate-token.outputs.token }} mangle: runs-on: ubuntu-latest + env: + appid: ${{ secrets.DEPLOY_APP_ID }} steps: - - name: Check for app ID - env: - appid: ${{ secrets.DEPLOY_APP_ID }} - run: | - echo Set environment with app ID - uses: actions/checkout@v4 - uses: tibdex/github-app-token@v2 if: ${{ env.appid != '' }}