File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 64
64
- name : Apply and push version increment
65
65
id : git-commit
66
66
if : steps.search-patch.outputs.result
67
+ env :
68
+ REPOSITORY_NAME : ${{ github.event.workflow_run.head_repository.full_name }}
69
+ BRANCH_NAME : ${{ github.event.workflow_run.head_branch }}
70
+ BOT_PA_TOKEN : ${{ secrets.githubBotPAT }}
67
71
run : |
68
72
set -x
69
73
# Set initial placeholder name/mail and read it from the patch later
85
89
echo "EOF" >> $GITHUB_OUTPUT
86
90
87
91
git push \
88
- "https://oauth2:${BOT_PA_TOKEN}@github.com/${{ github.event.workflow_run.head_repository.full_name }}.git" \
89
- 'HEAD:refs/heads/${{ github.event.workflow_run.head_branch }}'
90
- env :
91
- BOT_PA_TOKEN : ${{ secrets.githubBotPAT }}
92
+ "https://oauth2:${BOT_PA_TOKEN}@github.com/${REPOSITORY_NAME}.git" \
93
+ "HEAD:refs/heads/${BRANCH_NAME}"
92
94
93
95
- name : Find existing information comment
94
96
uses : peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3.1.0
@@ -103,11 +105,13 @@ jobs:
103
105
- name : Add or update information comment
104
106
uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
105
107
if : always()
108
+ env :
109
+ FILELIST : ${{ steps.git-commit.outputs.file-list }}
106
110
with :
107
111
github-token : ${{ secrets.githubBotPAT }}
108
112
script : |
109
113
const fs = require('fs')
110
- const fileList = `${{ steps.git-commit.outputs.file-list }}`
114
+ const fileList = process.env.FILELIST
111
115
if (fileList) { // if list is empty, no versions were changed
112
116
const commentBody = `
113
117
${{ env.COMMENT_FIRST_LINE }}.
You can’t perform that action at this time.
0 commit comments