Skip to content

Commit

Permalink
Merge pull request #265 from cds-snc/fix/switch-ghaction-slack-notif-…
Browse files Browse the repository at this point in the history
…to-curl

Switch ghaction slack notif to curl
  • Loading branch information
jimleroyer committed Dec 14, 2023
2 parents b968f84 + 42cd6c1 commit 273b226
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/count-incident-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 273b226

Please sign in to comment.