Skip to content

Commit

Permalink
Announce deploys in Zulip from GitHub runners too (#536)
Browse files Browse the repository at this point in the history
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
gerhard authored Dec 5, 2024
1 parent 5933c0c commit 2182a22
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/dagger_on_github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 0 additions & 4 deletions .github/workflows/dagger_on_k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,3 @@ jobs:
run: |
cd magefiles
go run main.go -w ../ ci
# TODO: run this in Dagger
# https://github.com/rtCamp/action-slack-notify/blob/v2.2.0/main.go
# - name: "Announce deploy in #dev Slack..."

0 comments on commit 2182a22

Please sign in to comment.