Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: try adding double braces to the variable reference #2041

Merged
merged 6 commits into from
Jan 9, 2025

Conversation

andrewleith
Copy link
Member

Summary | Résumé

3rd attempt at having this workflow pass the github_run_id properly to slack.

Copy link

github-actions bot commented Jan 9, 2025

@@ -38,5 +38,5 @@ jobs:
- name: Notify Slack channel if this job failed
if: ${{ failure() }}
run: |
json='{"text": "<!here> Staging a11y tests failed: <https://github.com/cds-snc/notification-admin/actions/runs/'${GITHUB_RUN_ID}'|see failure details> !"}'
json='{"text": "<!here> Staging a11y tests failed: <https://github.com/cds-snc/notification-admin/actions/runs/'${{GITHUB_RUN_ID}}'|see failure details> !"}'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
json='{"text": "<!here> Staging a11y tests failed: <https://github.com/cds-snc/notification-admin/actions/runs/'${{GITHUB_RUN_ID}}'|see failure details> !"}'
json='{"text": "<!here> Staging a11y tests failed: <https://github.com/cds-snc/notification-admin/actions/runs/'$GITHUB_RUN_ID'|see failure details> !"}'

@@ -121,5 +121,5 @@ jobs:
- name: Notify Slack channel if this job failed
if: ${{ failure() }}
run: |
json='{"text":"<!here> CI is failing in <https://github.com/cds-snc/notification-admin/actions/runs/'${GITHUB_RUN_ID}'|see failure details> !"}'
json='{"text":"<!here> CI is failing in <https://github.com/cds-snc/notification-admin/actions/runs/'${{GITHUB_RUN_ID}}'|see failure details> !"}'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
json='{"text":"<!here> CI is failing in <https://github.com/cds-snc/notification-admin/actions/runs/'${{GITHUB_RUN_ID}}'|see failure details> !"}'
json='{"text":"<!here> CI is failing in <https://github.com/cds-snc/notification-admin/actions/runs/'$GITHUB_RUN_ID'|see failure details> !"}'

@andrewleith andrewleith merged commit 494d91b into main Jan 9, 2025
11 checks passed
@andrewleith andrewleith deleted the fix/slack-webhook-part-3 branch January 9, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants