Skip to content

Commit 2a3f67d

Browse files
committed
Try to fix slack message for scheduled builds
1 parent d80dbff commit 2a3f67d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/linux-x64.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
echo "CI_EMOJI=❌" >> $GITHUB_ENV
5757
;;
5858
esac
59-
echo "CI_COMMIT=$(echo ${{ github.event.head_commit.id || github.event.pull_request.head.sha }} | grep -o '^........')" >> $GITHUB_ENV
59+
echo "CI_COMMIT=$(echo ${{ github.event.head_commit.id || github.sha }} | grep -o '^........')" >> $GITHUB_ENV
6060
6161
- name: Check if we should post to Slack
6262
if: ${{ always() }}
@@ -79,14 +79,14 @@ jobs:
7979
"type": "section",
8080
"text": {
8181
"type": "mrkdwn",
82-
"text": "<${{ github.event.head_commit.url || github.event.pull_request.html_url }}|${{ env.CI_COMMIT }}> on (${{ github.ref_name }}) by ${{ github.event.head_commit.author.username || github.event.pull_request.user.login }}"
82+
"text": "<${{ github.event.head_commit.url || github.event.pull_request.html_url || github.event_name }}|${{ env.CI_COMMIT }}> on (${{ github.ref_name }}) by ${{ github.event.head_commit.author.username || github.event.pull_request.user.login || 'schedule' }}"
8383
}
8484
},
8585
{
8686
"type": "section",
8787
"text": {
8888
"type": "plain_text",
89-
"text": ${{ toJSON(github.event.head_commit.message || github.event.pull_request.title) }}
89+
"text": ${{ toJSON(github.event.head_commit.message || github.event.pull_request.title || github.event_name ) }}
9090
}
9191
},
9292
{

0 commit comments

Comments
 (0)