Skip to content

Commit 2a87baa

Browse files
committed
fix: do not fail if root index.html have no changes
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent 5f31bb8 commit 2a87baa

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/generate-top-index.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@ permissions:
1212
contents: write
1313

1414
jobs:
15-
build:
15+
build-and-deploy:
1616
name: Build index.html
1717
runs-on: ubuntu-latest
1818

19-
permissions:
20-
contents: read
21-
2219
steps:
2320
- name: Cache git metadata
2421
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
@@ -72,4 +69,4 @@ jobs:
7269
mv /tmp/static/ static/
7370
git add index.html static/
7471
git commit -m "chore: update index.html for documentation" || echo "No changes to commit"
75-
git push origin gh-pages
72+
git push origin gh-pages || echo "Nothing to push (expected if no changes)"

0 commit comments

Comments
 (0)