File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ jobs:
25
25
run : |
26
26
COMMIT_SHA=$(git rev-parse HEAD)
27
27
COMMIT_TITLE=$(git log -1 --pretty=format:'%s' $COMMIT_SHA)
28
- COMMIT_MESSAGE=$(git log -1 --pretty=format:'%b ' $COMMIT_SHA)
28
+ COMMIT_MESSAGE=$(git log -1 --pretty=format:'%B ' $COMMIT_SHA)
29
29
COMMIT_AUTHOR=$(git log -1 --pretty=format:'%an' $COMMIT_SHA)
30
30
echo "commit_sha=${COMMIT_SHA}" >> $GITHUB_ENV
31
31
echo "commit_title=${COMMIT_TITLE}" >> $GITHUB_ENV
32
- echo "commit_message=${COMMIT_MESSAGE}" >> $GITHUB_ENV
33
32
echo "commit_author=${COMMIT_AUTHOR}" >> $GITHUB_ENV
33
+ echo "${COMMIT_MESSAGE}" > commit_message.txt
34
34
35
35
- name : Map commit author to GitHub username
36
36
id : map_author
53
53
LABEL_KEYWORDS["wontfix"]="wontfix"
54
54
55
55
COMMIT_TITLE="${{ env.commit_title }}"
56
- COMMIT_MESSAGE="${{ env. commit_message }}"
56
+ COMMIT_MESSAGE=$(cat commit_message.txt) # Read commit message from the file
57
57
58
58
LABELS=""
59
59
70
70
- name : Create pull request
71
71
id : create_pr
72
72
run : |
73
- gh pr create --head ${{ env.BRANCH_NAME }} --base main -t "$commit_title" -b "$commit_message" -a "$GITHUB_USERNAME" -l "$LABELS"
73
+ COMMIT_MESSAGE=$(cat commit_message.txt) # Read commit message from the file
74
+ gh pr create --head ${{ env.BRANCH_NAME }} --base main -t "${{ env.commit_title }}" -b "$COMMIT_MESSAGE" -a "${{ env.GITHUB_USERNAME }}" -l "${{ env.LABELS }}"
You can’t perform that action at this time.
0 commit comments