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

Migrate to slack notifications #481

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

philipbalinov
Copy link
Contributor

Migrate away from Discord and to Slack notifications

Notifications are going to #mondoo-ops via the Mondoo App

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]>
@philipbalinov philipbalinov requested review from benr and czunker October 15, 2024 15:57
Comment on lines 45 to 48
# 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 }}
Copy link
Contributor

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?

Copy link
Contributor Author

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()
Copy link
Contributor

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().

Copy link
Contributor Author

@philipbalinov philipbalinov Oct 16, 2024

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.

Comment on lines 65 to 68
# 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 }}
Copy link
Contributor

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.

@philipbalinov philipbalinov requested a review from czunker October 16, 2024 10:06
Copy link
Contributor

@czunker czunker left a comment

Choose a reason for hiding this comment

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

@philipbalinov philipbalinov merged commit a230a31 into main Oct 16, 2024
8 checks passed
@philipbalinov philipbalinov deleted the philip/migrate-discord-actions-to-slack branch October 16, 2024 13:36
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants