forked from sancarn/stdVBA
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.14 KB
/
stdError_wrap.yml
File metadata and controls
45 lines (36 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: write # ← allow the token to push
jobs:
error-enwrap:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0 # full history → push works
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Run stdError wrapper
run: node ./Tools/VBA-stdError-Wrapper/main.js
- name: Commit + force-push to stdError-Wrapped
run: |
set -euo pipefail
set -x
echo " == Configure git =="
git config --global user.name "GitHub Actions Bot"
git config --global user.email "actions@github.com"
echo "== Current status =="
git status -s
echo " == Add changes =="
git add -A
git commit -m "Wrapped latest changes in stdError sentries" || echo "No changes to commit"
git log -1 --oneline
echo "== Force-push =="
git push --verbose origin +HEAD:stdError-Wrapped