File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,21 @@ inputs:
27
27
runs :
28
28
using : composite
29
29
steps :
30
+ - name : Set env (escaped)
31
+ id : env
32
+ shell : bash
33
+ run : |
34
+ {
35
+ echo "commit_message<<EOF"
36
+ echo "${{ github.event.head_commit.message }}"
37
+ echo "EOF"
38
+ } >> $GITHUB_ENV
39
+ {
40
+ echo "input_message<<EOF"
41
+ echo "${{ inputs.message }}"
42
+ echo "EOF"
43
+ } >> $GITHUB_ENV
30
44
- name : Set fields
31
- env :
32
- input_message : ${{ inputs.message }}
33
- commit_message : ${{ github.event.head_commit.message }}
34
45
shell : bash
35
46
if : always()
36
47
id : fields
60
71
commit_message="Link to the latest commit in the repository"
61
72
message="<https://github.com/${{ inputs.repository }}/commit/${{ github.sha }}|$commit_message>"
62
73
fi
63
- echo "message=$message" >> $GITHUB_OUTPUT
74
+ {
75
+ echo "message<<EOF"
76
+ echo "$message"
77
+ echo "EOF"
78
+ } >> $GITHUB_OUTPUT
64
79
65
80
author=${{ github.event.pusher.name }} # context from `push` trigger
66
81
author=${author:-${{ github.event.sender.login }}} # context from `workflow_dispatch` trigger
You can’t perform that action at this time.
0 commit comments