Skip to content

Commit

Permalink
fix: always commit to avoid accidentally amending source commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sloanelybutsurely committed Jan 29, 2025
1 parent 8bbb1df commit fe86028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
artifact_name: github-pages-publish-1
- run: |
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
- run: bundle exec jekyll webmention
- run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
Expand All @@ -58,5 +58,5 @@ jobs:
artifact_name: github-pages-publish-1
- run: |
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

0 comments on commit fe86028

Please sign in to comment.