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 622cb5d commit 02b1378
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 @@ -99,5 +99,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 - go-highs $VERSION (see <https://github.com/nextmv-io/go-highs/releases/$VERSION|release notes>)\"}"
curl -X POST -H 'Content-type: application/json' --data "$DATA" ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit 02b1378

Please sign in to comment.