File tree Expand file tree Collapse file tree 2 files changed +14
-17
lines changed Expand file tree Collapse file tree 2 files changed +14
-17
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 78
78
- name : Checkout user repository
79
79
uses : actions/checkout@v4
80
80
with :
81
- fetch-depth : 2
82
81
persist-credentials : false
83
82
token : ${{ steps.create_token.outputs.token }}
84
- ref : " refs/pull/ ${{ github.event.number }}/merge "
83
+ ref : ${{ github.event.pull_request.head.sha }}
85
84
86
85
# To avoid giving unknown scripts elevated permissions, download them from the master branch
87
86
- name : Get CI scripts from master (Linux and macOS)
@@ -147,7 +146,19 @@ jobs:
147
146
for tool in ${{ env.CHANGED_TOOLS }}; do
148
147
cp -f ./${{ env.DISTPATH }}/$tool.exe tools/$tool.exe
149
148
done
150
- bash .github/scripts/upload_py_tools.sh "${{ env.CHANGED_TOOLS }}"
149
+
150
+ CHANGED_FILES="${{ env.CHANGED_TOOLS }}"
151
+
152
+ echo "Pushing '$CHANGED_FILES' as github-actions[bot]"
153
+ git config --global github.user "github-actions[bot]"
154
+ git config --global user.name "github-actions[bot]"
155
+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
156
+ for tool in $CHANGED_FILES; do
157
+ git add tools/$tool.exe
158
+ done
159
+ git commit -m "change(tools): Push generated binaries to PR"
160
+ git push origin HEAD:refs/pull/${{ github.event.number }}/merge
161
+
151
162
- name : Archive artifact
152
163
uses : actions/upload-artifact@master
153
164
with :
You can’t perform that action at this time.
0 commit comments