]> Untitled Git - bdk/commitdiff
[ci] Ignore empty nightly docs commits instead of failing
authorAlekos Filini <alekos.filini@gmail.com>
Mon, 14 Dec 2020 14:16:38 +0000 (15:16 +0100)
committerAlekos Filini <alekos.filini@gmail.com>
Mon, 14 Dec 2020 14:16:38 +0000 (15:16 +0100)
.github/workflows/nightly_docs.yml

index d3ad4ab2b63d5ea350869efa187a625a1986b8ec..de0f5e5da4acdbb21f0411f4f47bb95d7d75c373 100644 (file)
@@ -59,5 +59,8 @@ jobs:
           path: ./static/docs-rs/bdk/nightly/latest
       - name: Configure git
         run: git config user.email "github-actions@github.com" && git config user.name "github-actions"
-      - name: Commit and push
-        run: git add ./static && git commit -m "Publish autogenerated nightly docs" && git push origin master
+      - name: Commit
+        continue-on-error: true         # If there's nothing to commit this step fails, but it's fine
+        run: git add ./static && git commit -m "Publish autogenerated nightly docs"
+      - name: Push
+        run: git push origin master