Add slack alerts to toolkit publish (#457)

This commit is contained in:
Sterling Dreyer 2025-06-24 11:01:21 -07:00 committed by GitHub
parent 352079151e
commit d86cc1c301
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -139,3 +139,15 @@ jobs:
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Send status to Slack
if: always()
uses: slackapi/slack-github-action@v2.0.0
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
status: "${{ (steps.pypi-publish.outcome == 'failure' || steps.pypi-publish.outcome == 'failure') && 'Failed' || 'Success' }}"
toolkit: ${{ env.PACKAGE_NAME }}
version: ${{ env.VERSION }}
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"