Skip to content

Commit de5d13a

Browse files
committed
test
1 parent 5670aa7 commit de5d13a

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

action.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff 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
@@ -59,12 +58,7 @@ runs:
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

0 commit comments

Comments
 (0)