Skip to content

Commit e766d6f

Browse files
committed
ci(gh-pages): update GitHub Pages workflow
1 parent 44bec19 commit e766d6f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/gh-pages.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,11 @@ jobs:
218218
git config user.email "github-actions[bot]@users.noreply.github.com"
219219
git add .
220220
git diff --cached --quiet || git commit -m "Add generated audio files"
221-
git push
221+
git push || {
222+
echo "Push failed, attempting pull and merge"
223+
git pull --rebase
224+
git push
225+
}
222226
env:
223227
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
224228

0 commit comments

Comments
 (0)