-
Notifications
You must be signed in to change notification settings - Fork 14
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
Migrate to slack notifications #481
Conversation
Migrate away from Discord and to Slack notifications Notifications are going to #mondoo-ops via the Mondoo App Signed-off-by: Philip Balinov <[email protected]>
# C07R9GSGKEU == #mondoo-ops | ||
SLACK_BOT_CHANNEL_ID: "C07R9GSGKEU" | ||
WORKFLOW_RUN_URL: ${{ github.event.workflow_run.html_url }} | ||
WORKFLOW_RUN_NAME: ${{ github.event.workflow_run.name }} |
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.
Perhaps set these on the job level, so we don't have them twice?
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.
cleaned those vars up as they were actually not needed, and moved the remaining to the job level
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
- uses: slackapi/[email protected] | ||
if: always() |
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.
Is this was you want?
IIRC, always()
was counterintuitive to me. In some places, I had to use failure() || success()
.
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.
yes, i do indeed mean always()
here, I want the action to update slack if the job is cancelled too.
# C07R9GSGKEU == #mondoo-ops | ||
SLACK_BOT_CHANNEL_ID: "C07R9GSGKEU" | ||
WORKFLOW_RUN_URL: ${{ github.event.workflow_run.html_url }} | ||
WORKFLOW_RUN_NAME: ${{ github.event.workflow_run.name }} |
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.
Same here, Perhaps putting this on the job level makes life easier in the future.
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.
Thanks @philipbalinov
Migrate away from Discord and to Slack notifications
Notifications are going to #mondoo-ops via the Mondoo App