File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 22
33[ ![ CI] ( https://github.com/scribd/job-notification/actions/workflows/ci.yml/badge.svg?branch=main&event=push )] ( https://github.com/scribd/job-notification/actions/workflows/test.yml ) [ ![ semantic-release: angular] ( https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release )] ( https://github.com/semantic-release/semantic-release )
44
5- A GitHub Action for sending job notifications.
5+ A GitHub Action for sending job notifications
66
77## Table of contents
88
Original file line number Diff line number Diff line change @@ -28,14 +28,13 @@ runs:
2828 using : composite
2929 steps :
3030 - name : Set fields
31+ env :
32+ input_message : ${{ inputs.message }}
33+ commit_message : ${{ github.event.head_commit.message }}
3134 shell : bash
3235 if : always()
3336 id : fields
34- env :
35- commit_message : ${{ github.event.head_commit.message }}
36- input_message : ${{ inputs.message }}
3737 run : |
38- echo "Made it here!"
3938 if [ "${{ inputs.status }}" = "success" ]; then
4039 echo "emoji=large_green_square" >> $GITHUB_OUTPUT
4140 echo "color=good" >> $GITHUB_OUTPUT
5958 commit_msg_line="Link to the latest commit in the repository"
6059 message=$(printf '<https://github.com/%s/commit/%s|%s>' "${{ inputs.repository }}" "${{ github.sha }}" "$commit_msg_line")
6160 fi
62-
63- {
64- echo "message<<EOF"
65- echo "$message"
66- echo "EOF"
67- } >> $GITHUB_OUTPUT
61+ echo "message=$message" >> $GITHUB_OUTPUT
6862
6963 author=${{ github.event.pusher.name }} # context from `push` trigger
7064 author=${author:-${{ github.event.sender.login }}} # context from `workflow_dispatch` trigger
You can’t perform that action at this time.
0 commit comments