Skip to content

Commit 62e5c61

Browse files
Merge pull request #10 from nextmv-io/merschformann/slack-notifications
Adds Slack notifications about releases
2 parents cb88fb6 + 01b4a3a commit 62e5c61

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,13 @@ jobs:
126126
with:
127127
repository-url: https://test.pypi.org/legacy/
128128
packages-dir: ./dist
129+
130+
notify:
131+
runs-on: ubuntu-latest
132+
needs: publish
133+
if: ${{ needs.publish.result == 'success' && inputs.IS_PRE_RELEASE == false }}
134+
steps:
135+
- name: notify slack
136+
run: |
137+
export DATA="{\"text\":\"Release notification - nextplot ${{ inputs.VERSION }} (see <https://github.com/nextmv-io/nextplot/releases/${{ inputs.VERSION }}|release notes> / <https://pypi.org/project/nextplot|PyPI>)\"}"
138+
curl -X POST -H 'Content-type: application/json' --data "$DATA" ${{ secrets.SLACK_URL_MISSION_CONTROL }}

0 commit comments

Comments
 (0)