Skip to content

Commit

Permalink
Merge pull request #5191 from mozilla/dependabot/github_actions/slack…
Browse files Browse the repository at this point in the history
…api/slack-github-action-2.0.0

Bump slackapi/slack-github-action from 1.27.0 to 2.0.0
  • Loading branch information
groovecoder authored Nov 18, 2024
2 parents aebe2bf + a04c3a6 commit b4f69f2
Showing 1 changed file with 22 additions and 45 deletions.
67 changes: 22 additions & 45 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,51 +79,28 @@ jobs:
retention-days: 5
- name: Send GitHub Action trigger data to Slack workflow
id: slack
uses: slackapi/slack-github-action@v1.27.0
uses: slackapi/slack-github-action@v2.0.0
if: failure()
with:
# For posting a rich message using Block Kit
webhook: ${{ secrets.SLACK_GHA_FAILURES_WEBHOOK }}
webhook-type: incoming-webhook
payload: |
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Link to job:* *<https://github.com/mozilla/fx-private-relay/actions/runs/${{ github.run_id }}|Relay e2e tests>*"
}
},
{
"type": "divider"
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Workflow:* \n ${{ github.workflow }}"
},
{
"type": "mrkdwn",
"text": "*Status:*\n ${{ job.status }} "
}
]
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Ref:*\n ${{ github.ref }} "
},
{
"type": "mrkdwn",
"text": "*Triggered by:*\n ${{ github.triggering_actor }}"
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GHA_FAILURES_WEBHOOK }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
blocks:
- type: section
text:
type: mrkdwn
text: "*Link to job:* *<https://github.com/mozilla/fx-private-relay/actions/runs/${{ github.run_id }}|Relay e2e tests>*"
- type: divider
- type: section
fields:
- type: mrkdwn
text: "*Workflow:*\n ${{ github.workflow }}"
- type: mrkdwn
text: "*Status:*\n ${{ job.status }}"
- type: section
fields:
- type: mrkdwn
text: "*Ref:*\n ${{ github.ref }}"
- type: mrkdwn
text: "*Triggered by:*\n ${{ github.triggering_actor }}"

0 comments on commit b4f69f2

Please sign in to comment.