-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Announce deploys in Zulip from GitHub runners too (#536)
If Namespace.so was to fail - Always run 2 of everything™ - we want to notify Zulip of a deploy when we fallback to the GitHub runner. Signed-off-by: Gerhard Lazu <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,12 +48,17 @@ jobs: | |
cd magefiles | ||
go run main.go -w ../ cd | ||
- name: "Announce deploy in #dev Slack..." | ||
- name: "Announce deploy in #kaizen Zulip..." | ||
if: ${{ github.repository == 'thechangelog/changelog.com' && github.ref_name == 'master' }} | ||
uses: rtCamp/action-slack-notify@v2 | ||
env: | ||
MSG_MINIMAL: "commit,actions url" | ||
SLACK_CHANNEL: dev | ||
SLACK_USERNAME: "GitHub Actions" | ||
SLACK_FOOTER: "Just got shipped to https://changelog.com" | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
uses: zulip/github-actions-zulip/send-message@v1 | ||
with: | ||
api-key: ${{ secrets.ZULIP_BOT_API_KEY }} | ||
email: "[email protected]" | ||
organization-url: "https://changelog.zulipchat.com" | ||
to: "kaizen" | ||
type: "stream" | ||
topic: "Code deploys" | ||
content: | | ||
${{ github.actor }} just successfully deployed [${{ env.SHORT_SHA }}](https://github.com/thechangelog/changelog.com/commit/${{ github.sha }}): | ||
> ${{ github.event.commits[0].message }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters