From 94f3aa2126231fb04f4c3125162e84f6acc3df09 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 25 Oct 2022 23:02:04 -0700 Subject: [PATCH] Improve Cirrus notification metadata [ci skip] --- .github/workflows/cirrus-notify.yml | 8 +++++--- 1 file 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' }}