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