fix: always commit to avoid accidentally amending source commit
Some checks are pending
Build and publish / build-and-deploy (push) Waiting to run

This commit is contained in:
sloane 2025-01-29 12:21:22 -05:00
parent be85bb1494
commit 06f0488c31
Signed by: sloanelybutsurely
SSH key fingerprint: SHA256:8SBnwhl+RY3oEyQxy1a9wByPzxWM0x+/Ejc+sIlY5qQ

View file

@ -46,7 +46,7 @@ jobs:
artifact_name: github-pages-publish-1 artifact_name: github-pages-publish-1
- run: | - run: |
git add _data/webmention_io_* git add _data/webmention_io_*
git diff --staged --quiet || git commit -m "publish: ${{ github.sha }}" git diff --staged --quiet || git commit -m "publish: collect webmentions for ${{ github.sha }}"
git push origin main git push origin main
- run: bundle exec jekyll webmention - run: bundle exec jekyll webmention
- run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" - run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
@ -58,5 +58,5 @@ jobs:
artifact_name: github-pages-publish-1 artifact_name: github-pages-publish-1
- run: | - run: |
git add _data/webmention_io_* git add _data/webmention_io_*
git diff --staged --quiet || git commit --amend --no-edit git diff --staged --quiet || git commit -m "publish: update webmentions for ${{ github.sha }}"
git push origin main --force-with-lease git push origin main --force-with-lease