Skip to content

Commit

Permalink
Only notify slack for prod releases
Browse files Browse the repository at this point in the history
  • Loading branch information
merschformann committed Sep 18, 2024
1 parent cf3478a commit 95f368a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,14 @@ jobs:
if: ${{ env.APPS != '' }}
run: |
export PATH=$PATH:~/.nextmv # Make CLI available in non-interactive shell
export SLACK_NOTIFY_PARAM="" # Only notify slack for prod releases
if [ ${{ matrix.environment }} == "prod" ]; then
export SLACK_NOTIFY_PARAM="--slack-url \"${{ secrets.SLACK_URL_MISSION_CONTROL }}\""
fi
python main.py \
--apps "${{ env.APPS }}" \
--bucket "${{ env.BUCKET }}" \
--folder "${{ env.FOLDER }}" \
--manifest "${{ env.MANIFEST }}" \
--slack-url "${{ secrets.SLACK_URL_MISSION_CONTROL }}"
$SLACK_NOTIFY_PARAM
working-directory: ./community-apps/.nextmv/release

0 comments on commit 95f368a

Please sign in to comment.