Skip to content

Commit

Permalink
Update usage of slack-github-action to match new API
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Riffer committed Dec 5, 2024
1 parent 52fd735 commit 7c79bec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions .github/actions/slack-notification-failed-workflow/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
11 changes: 5 additions & 6 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,9 @@ jobs:
- name: Notify
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 }}
repository: ${{ github.repository }},
release: ${{ inputs.name }}

0 comments on commit 7c79bec

Please sign in to comment.