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:
parent
0e9207a895
commit
30e36e1325
1 changed files with 7 additions and 5 deletions
12
.github/workflows/release-on-version-change.yml
vendored
12
.github/workflows/release-on-version-change.yml
vendored
|
|
@ -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 }}"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue