Skip to content

Commit

Permalink
Merge pull request #10 from nextmv-io/merschformann/slack-notifications
Browse files Browse the repository at this point in the history
Adds Slack notifications about releases
  • Loading branch information
merschformann authored Sep 18, 2024
2 parents cb88fb6 + 01b4a3a commit 62e5c61
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,13 @@ jobs:
with:
repository-url: https://test.pypi.org/legacy/
packages-dir: ./dist

notify:
runs-on: ubuntu-latest
needs: publish
if: ${{ needs.publish.result == 'success' && inputs.IS_PRE_RELEASE == false }}
steps:
- name: notify slack
run: |
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>)\"}"
curl -X POST -H 'Content-type: application/json' --data "$DATA" ${{ secrets.SLACK_URL_MISSION_CONTROL }}

0 comments on commit 62e5c61

Please sign in to comment.