-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add send-system-notification callable workflow #144
base: main
Are you sure you want to change the base?
Conversation
This reverts commit 66c9a98.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have styling suggestions, LGTM besides
|
||
system_notifications_config = { | ||
channels = { | ||
"workflow-failures" = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"workflow-failures" = { | |
workflow-failures = { |
I don't think either -
or _
in variable names requires quotes?
workflow_dispatch: | ||
inputs: | ||
channel: | ||
description: "Name of channel to use. Must be defined in /infra/project-config" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: "Name of channel to use. Must be defined in /infra/project-config" | |
description: "Name of channel to use. Must be defined in /infra/project-config/system-notifications.tf" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that was intentional since I was just referring to the module not the specific file in case we rename the file, but you're right this is probably clearer will change
|
||
- name: Send Slack message | ||
if: ${{ steps.get-channel-type.outputs.channel_type == 'slack' }} | ||
uses: slackapi/[email protected] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm glad this exists! I wrote my version using curl, and it was hecka annoying
Ticket
Related to navapbc/template-infra#808
Changes
Context for reviewers
I plan on adding documentation in a future PR once I get this working end to end for a few workflows
Testing
Ran workflow manually: https://github.com/navapbc/platform-test/actions/runs/12324530980
Preview environment for app