From 30e36e13259e24ecc5400ab6d6c89ec41b7a29b1 Mon Sep 17 00:00:00 2001 From: Eric Gustin <34000337+EricGustin@users.noreply.github.com> Date: Tue, 1 Jul 2025 10:00:35 -0700 Subject: [PATCH] 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. --- .github/workflows/release-on-version-change.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-on-version-change.yml b/.github/workflows/release-on-version-change.yml index 49159f9f..08cf34c9 100644 --- a/.github/workflows/release-on-version-change.yml +++ b/.github/workflows/release-on-version-change.yml @@ -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 }}" + }