Skip to content

Commit

Permalink
fix(e2e-tests): update slack step with new 2.0.0 syntax in YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
groovecoder committed Nov 18, 2024
1 parent a31f551 commit a04c3a6
Showing 1 changed file with 21 additions and 44 deletions.
65 changes: 21 additions & 44 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,48 +82,25 @@ jobs:
uses: slackapi/[email protected]
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 a04c3a6

Please sign in to comment.