-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #265 from cds-snc/fix/switch-ghaction-slack-notif-…
…to-curl Switch ghaction slack notif to curl
- Loading branch information
Showing
1 changed file
with
4 additions
and
7 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 |
---|---|---|
|
@@ -54,10 +54,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Report to Slack | ||
uses: slackapi/[email protected] | ||
with: | ||
slack-message: 'Core team tech debt show-off :melting_face: :muscle:\nBug: ${{ needs.count_bug_issues.outputs.count }}, Incident Actions: ${{ needs.count_incident_action_issues.outputs.count }}, Tech Debt issues: ${{ needs.count_tech_debt_issues.outputs.count }}' | ||
channel-id: 'CV38DBNVA' | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
- name: Notify Slack channel if this job failed | ||
run: | | ||
json="{\"text\":\"Core team tech debt show-off :muscle: :melting_face:\nBugs: ${{ needs.count_bug_issues.outputs.count }}, Incident Actions: ${{ needs.count_incident_action_issues.outputs.count }}, Tech Debt issues: ${{ needs.count_tech_debt_issues.outputs.count }}\"}" | ||
curl -X POST -H 'Content-type: application/json' --data "$json" ${{ secrets.SLACK_WEBHOOK_URL }} |