Skip to content

Commit 6e20059

Browse files
committed
ci/gha: don't fail gh-pages update if nothing changed
And upload-artifact also needs to be updated to v3 to avoid deprecated features.
1 parent a5fe003 commit 6e20059

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/emscripten.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
docker run --rm -v "${PWD}":/code -v "/tmp/emcc_lto:/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/lto" libass/jso:latest
6767
6868
- name: Upload Nightly Build
69-
uses: actions/upload-artifact@v2
69+
uses: actions/upload-artifact@v3
7070
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/master'
7171
with:
7272
name: js
@@ -97,6 +97,7 @@ jobs:
9797
git config --global user.email "actions@noreply.github.com"
9898
git config --global user.name "GitHub Action"
9999
git add assets/js
100-
git commit -m "$(printf \
101-
"Update binaries to latest nightly\n\nFrom %s" "${{ github.sha }}")"
102-
git push origin gh-pages
100+
(git commit -m "$(printf \
101+
"Update binaries to latest nightly\n\nFrom %s" "${{ github.sha }}")" \
102+
&& git push origin gh-pages) \
103+
|| : # Ignore if nothing changed

0 commit comments

Comments
 (0)