File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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 {
You can’t perform that action at this time.
0 commit comments