Skip to content

Commit

Permalink
Skipping notification for pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
merschformann committed Sep 18, 2024
1 parent fe369dd commit ad1c0fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,8 @@ jobs:

- name: notify slack
run: |
if [ ${{ inputs.IS_PRE_RELEASE }} = true ]; then
exit 0 # don't notify slack for pre-releases
fi
export DATA="{\"text\":\"Release notification - sdk $VERSION (see <https://github.com/nextmv-io/sdk/releases/$VERSION|release notes>)\"}"
curl -X POST -H 'Content-type: application/json' --data "$DATA" ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit ad1c0fb

Please sign in to comment.