Skip to content

Commit 71e2358

Browse files
committed
chore: persist isolated generator diagnostics
1 parent 6abf07a commit 71e2358

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/lyrics-reimplementation.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020
with:
21+
ref: feature/lyrics-reimplementation
2122
fetch-depth: 0
2223

2324
- uses: actions/setup-node@v4
@@ -45,9 +46,15 @@ jobs:
4546
name: lyrics-apply-error
4647
path: /tmp/lyrics-apply.log
4748

48-
- name: Stop after generator failure
49+
- name: Persist generator failure
4950
if: steps.apply.outcome == 'failure'
5051
run: |
52+
cp /tmp/lyrics-apply.log lyrics-apply-error.txt
53+
git config user.name github-actions[bot]
54+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
55+
git add lyrics-apply-error.txt
56+
git commit -m '[lyrics-error] chore: capture generator failure' || true
57+
git push origin HEAD:feature/lyrics-reimplementation || true
5158
cat /tmp/lyrics-apply.log
5259
exit 1
5360
@@ -67,6 +74,7 @@ jobs:
6774
run: |
6875
rm -f .github/workflows/lyrics-reimplementation.yml
6976
rm -f scripts/apply_lyrics_reimplementation.py
77+
rm -f lyrics-apply-error.txt
7078
git diff 367fe96f7e89ee18e94a60ab487a631561bbe94f > /tmp/MediaShell-lyrics-reimplementation.patch
7179
zip -qr /tmp/MediaShell-lyrics-reimplementation-source.zip . \
7280
-x '.git/*' 'node_modules/*' 'dist/*'

0 commit comments

Comments
 (0)