Update slack notification for PyPI publishes (#463)

Update the Slack notification to use the "package" notification instead
of the "toolkit" notification since this workflow runs for not only
toolkits but also our libs.
This commit is contained in:
Eric Gustin 2025-07-01 10:00:35 -07:00 committed by GitHub
parent 0e9207a895
commit 30e36e1325
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -144,10 +144,12 @@ jobs:
if: always()
uses: slackapi/slack-github-action@v2.0.0
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook: ${{ secrets.PACKAGE_RELEASE_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 }}"
{
"status": "${{ (steps.pypi-publish.outcome == 'failure' || steps.pypi-publish.outcome == 'failure') && 'Failed' || 'Success' }}",
"package": "${{ env.PACKAGE_NAME }}",
"version": "${{ env.VERSION }}",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}