Skip to content

Commit

Permalink
Simplifying notification, fixing secret name
Browse files Browse the repository at this point in the history
  • Loading branch information
merschformann committed Sep 18, 2024
1 parent 02b1378 commit e4feb67
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ jobs:
working-directory: ./go-highs

- name: notify slack
if: ${{ inputs.IS_PRE_RELEASE == false }}
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 }}
curl -X POST -H 'Content-type: application/json' --data "$DATA" ${{ secrets.SLACK_URL_MISSION_CONTROL }}

0 comments on commit e4feb67

Please sign in to comment.