-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(e2e-tests): update slack step with new 2.0.0 syntax in YAML
- Loading branch information
1 parent
a31f551
commit a04c3a6
Showing
1 changed file
with
21 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }}" | ||