From 06f0488c3151454694f7c24f80caef17d0c4d142 Mon Sep 17 00:00:00 2001 From: sloane Date: Wed, 29 Jan 2025 12:21:22 -0500 Subject: [PATCH] fix: always commit to avoid accidentally amending source commit --- .github/workflows/publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 3464267..5dd7864 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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 }}" @@ -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