Skip to content

Commit

Permalink
Fix app workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpolman committed May 22, 2024
1 parent 97da1b2 commit d819d21
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@ jobs:
ref: ${{ github.ref }}

- name: Set DISCORD_WEBHOOK based on branch
run: echo "DISCORD_WEBHOOK=${{ secrets[${{ github.ref == 'refs/heads/develop' && 'DISCORD_WEBHOOK_DEV' || github.ref == 'refs/heads/main' && 'DISCORD_WEBHOOK_PROD' }}] }}" >> $GITHUB_ENV
run: |
if [[ $GITHUB_REF == 'refs/heads/develop' ]]; then
echo "DISCORD_WEBHOOK=${{ secrets.DISCORD_WEBHOOK_DEV }}" >> $GITHUB_ENV
elif [[ $GITHUB_REF == 'refs/heads/main' ]]; then
echo "DISCORD_WEBHOOK=${{ secrets.DISCORD_WEBHOOK_PROD }}" >> $GITHUB_ENV
fi
- name: Send message
env:
Expand Down

0 comments on commit d819d21

Please sign in to comment.