Skip to content

Commit

Permalink
fix: Set environment variables at job level
Browse files Browse the repository at this point in the history
  • Loading branch information
abensonca committed Nov 11, 2024
1 parent 0994e88 commit b70adb5
Showing 1 changed file with 12 additions and 30 deletions.
42 changes: 12 additions & 30 deletions .github/workflows/dependencyBot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 != '' }}
Expand Down Expand Up @@ -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 != '' }}
Expand Down Expand Up @@ -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 != '' }}
Expand Down Expand Up @@ -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 != '' }}
Expand Down Expand Up @@ -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 != '' }}
Expand Down Expand Up @@ -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 != '' }}
Expand Down

0 comments on commit b70adb5

Please sign in to comment.