diff --git a/.github/actions/slack-notification-failed-workflow/action.yaml b/.github/actions/slack-notification-failed-workflow/action.yaml index 7a88832ec4..da2c2b5d11 100644 --- a/.github/actions/slack-notification-failed-workflow/action.yaml +++ b/.github/actions/slack-notification-failed-workflow/action.yaml @@ -12,10 +12,9 @@ runs: - name: Notify uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0 with: + webhook: ${{ secrets.SLACK_WEBHOOK_URL }} + webhook-type: webhook-trigger + payload-templated: true payload: | - { - "repository": "${{ github.repository }}", - "workflow": "${{ github.workflow }}" - } - env: - SLACK_WEBHOOK_URL: ${{ inputs.SLACK_WEBHOOK_URL }} + repository: ${{ github.repository }}, + workflow: ${{ github.workflow }} \ No newline at end of file diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml index 43ed039f91..42cd8da535 100644 --- a/.github/workflows/create-release.yaml +++ b/.github/workflows/create-release.yaml @@ -131,12 +131,11 @@ jobs: if: success() steps: - name: Notify - uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0 + uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 with: + webhook: ${{ secrets.SLACK_RELEASE_WEBHOOK }} + webhook-type: webhook-trigger + payload-templated: true payload: | - { - "repository": "${{ github.repository }}", - "release": "${{ inputs.name }}" - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_WEBHOOK }} \ No newline at end of file + repository: ${{ github.repository }}, + release: ${{ inputs.name }} \ No newline at end of file