File tree Expand file tree Collapse file tree 1 file changed +9
-14
lines changed
Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Original file line number Diff line number Diff line change 11on :
22 workflow_dispatch :
3+
34permissions :
4- contents : write
5+ contents : write # ← allow the token to push
6+
57jobs :
68 error-enwrap :
79 runs-on : ubuntu-latest
810 steps :
9- # 1 – Get the full history so we can push back
10- - name : Checkout repository
11+ - name : Checkout repo
1112 uses : actions/checkout@v3
1213 with :
13- fetch-depth : 0 # important for pushes
14+ fetch-depth : 0 # full history → push works
1415
15- # 2 – Node 20
16- - name : Setup Node.js
16+ - name : Setup Node 20
1717 uses : actions/setup-node@v4
1818 with :
1919 node-version : " 20"
2020
21- # 3 – Generate wrapped code
22- - name : Run stdError wrapping script
21+ - name : Run stdError wrapper
2322 run : node ./Tools/VBA-stdError-Wrapper/main.js
2423
25- # 4 – Commit **everything** and force-push to stdError-Wrapped
26- - name : Commit and push to stdError-Wrapped
24+ - name : Commit + force-push to stdError-Wrapped
2725 run : |
2826 git config --global user.name "GitHub Actions Bot"
2927 git config --global user.email "actions@github.com"
30-
3128 git add -A
3229 git commit -m "Wrapped latest changes in stdError sentries" || echo "No changes to commit"
33-
34- # force-update the remote branch with whatever HEAD is now
35- git push origin HEAD:refs/heads/stdError-Wrapped --force
30+ git push --force origin HEAD:stdError-Wrapped # <-- --force in the right place
You can’t perform that action at this time.
0 commit comments