From 622cb5db7633dd78b9c1df6b595bfa358827f0d6 Mon Sep 17 00:00:00 2001 From: Marius Merschformann Date: Wed, 18 Sep 2024 04:02:09 +0200 Subject: [PATCH 1/3] Adding slack release notifications --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2e97b71..e1e6ff3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -96,3 +96,8 @@ jobs: --generate-notes \ --title $VERSION $PRERELEASE_FLAG working-directory: ./go-highs + + - name: notify slack + run: | + export DATA="{\"text\":\"Release notification - go-highs $VERSION (see )\"}" + curl -X POST -H 'Content-type: application/json' --data "$DATA" ${{ secrets.SLACK_WEBHOOK_URL }} From 02b1378dfc86194188bbde015bcbe0da767a1042 Mon Sep 17 00:00:00 2001 From: Marius Merschformann Date: Wed, 18 Sep 2024 04:10:56 +0200 Subject: [PATCH 2/3] Skipping notification for pre-release --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e1e6ff3..d39c740 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 )\"}" curl -X POST -H 'Content-type: application/json' --data "$DATA" ${{ secrets.SLACK_WEBHOOK_URL }} From e4feb67b8935bd95bba75d5034ab8507cddd1c34 Mon Sep 17 00:00:00 2001 From: Marius Merschformann Date: Wed, 18 Sep 2024 04:59:00 +0200 Subject: [PATCH 3/3] Simplifying notification, fixing secret name --- .github/workflows/release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d39c740..7741435 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 )\"}" - 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 }}