Skip to content

Commit 3b39f1e

Browse files
committed
Update stdError_wrap.yml
1 parent 72c9a88 commit 3b39f1e

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed
Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,30 @@
11
on:
22
workflow_dispatch:
3+
34
permissions:
4-
contents: write
5+
contents: write # ← allow the token to push
6+
57
jobs:
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

0 commit comments

Comments
 (0)