From d819d21afe721f5c7754dbc744d86e7dc2e10d79 Mon Sep 17 00:00:00 2001 From: Peter Date: Wed, 22 May 2024 09:42:26 +0200 Subject: [PATCH] Fix app workflow --- .github/workflows/app.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index b09e3b7a8..ce2810463 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -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: