Skip to content

Commit 5836406

Browse files
committed
Attempt at fixing github-action
1 parent 7ae0f24 commit 5836406

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/stdError_wrap.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@ on:
22
workflow_dispatch:
33

44
jobs:
5-
build-and-publish:
5+
error-enwrap:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Checkout repository
99
uses: actions/checkout@v3
10+
with:
11+
fetch-depth: 0 # Necessary to fetch all history and allow branch switching
12+
13+
- name: Switch to stdError-Wrapped branch (create if doesn't exist)
14+
run: |
15+
git fetch origin stdError-Wrapped || true
16+
git checkout -B stdError-Wrapped origin/stdError-Wrapped || git checkout -b stdError-Wrapped
1017
1118
- name: Setup Node.js
1219
uses: actions/setup-node@v4
@@ -21,5 +28,5 @@ jobs:
2128
git config user.name "GitHub Actions Bot"
2229
git config user.email "actions@github.com"
2330
git add -A
24-
git commit -m "Wrapped latest changes in stdError sentries" || echo "No changes to master"
25-
git push -f origin HEAD:stdError-Wrapped
31+
git commit -m "Wrapped latest changes in stdError sentries" || echo "No changes to commit"
32+
git push -f origin stdError-Wrapped

0 commit comments

Comments
 (0)