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

Create a GH action to automatically notify .env changes #655

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

mshadbolt
Copy link
Contributor

@mshadbolt mshadbolt commented Jun 19, 2024

This PR introduces a new workflow that runs when there is a PR that gets merged into develop that makes a change to the example.env file.

It works via a slack webhook url that triggers the automated Slack workflow (this link can only be used within Slack) which posts the following message to the candig-dev channel.
Screenshot 2024-06-18 at 7 52 37 PM

Any edits to the message that gets posted need to be made within Slack to the workflow itself.

Was made following the slack-github-action workflow builder guide. The Slack Webhook URL is saved as a secret in this repo so the github action is able to use it. It is possible to customise it further with a payload but went with this simple version as first version.

@mshadbolt mshadbolt requested a review from SonQBChau June 19, 2024 02:53
Copy link
Contributor

@SonQBChau SonQBChau left a comment

Choose a reason for hiding this comment

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

LGTM

@mshadbolt mshadbolt merged commit 8122206 into develop Jun 19, 2024
2 checks passed
@mshadbolt mshadbolt deleted the mshadbolt/slack-notify-action branch June 19, 2024 16:51
daisieh pushed a commit that referenced this pull request Jul 16, 2024
daisieh pushed a commit that referenced this pull request Oct 4, 2024
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