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

Announce deploys in Zulip from GitHub runners too #536

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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..."