aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/cirrus-notify.yml
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-10-25 23:02:04 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2022-10-25 23:02:04 -0700
commit94f3aa2126231fb04f4c3125162e84f6acc3df09 (patch)
treef3158439ed1c3a470c5701497b352d53415a5e20 /.github/workflows/cirrus-notify.yml
parentdf4361102158658a9419cd43a1ceb5a2e0ef29b9 (diff)
downloadruby-94f3aa2126231fb04f4c3125162e84f6acc3df09.tar.gz
Improve Cirrus notification metadata [ci skip]
Diffstat (limited to '.github/workflows/cirrus-notify.yml')
-rw-r--r--.github/workflows/cirrus-notify.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/cirrus-notify.yml b/.github/workflows/cirrus-notify.yml
index 3fd693c2a3..bbc84bf93b 100644
--- a/.github/workflows/cirrus-notify.yml
+++ b/.github/workflows/cirrus-notify.yml
@@ -22,9 +22,11 @@ jobs:
{
"ci": "Cirrus CI",
"env": "Cirrus CI",
- "url": "https://cirrus-ci.com/github/ruby/ruby",
- "commit": "${{ github.sha }}",
- "branch": "${{ github.ref_name }}"
+ "url": "https://github.com/ruby/ruby/actions/runs/${{ github.run_id }}",
+ "commit": "${{ github.event.check_suite.head_commit.id }}",
+ "branch": "${{ github.event.check_suite.head_branch }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
+ # head_branch can be null. checking it here to see GITHUB_CONTEXT on master.
+ if: ${{ github.event.check_suite.head_branch == 'master' }}