From 81244c787b13eddb160140b0404c551e28f95a1f Mon Sep 17 00:00:00 2001 From: AJaccP Date: Sat, 14 Nov 2026 10:53:56 -0500 Subject: [PATCH 1/2] skip workflow runs on image compression bot commits Co-Authored-By: Claude Opus 5.5 --- .github/workflows/compress-images.yml | 3 ++- .github/workflows/gh-pages.yml | 2 ++ .github/workflows/hugo-preview.yml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compress-images.yml b/.github/workflows/compress-images.yml index feb1d1ba53..5735b38d52 100644 --- a/.github/workflows/compress-images.yml +++ b/.github/workflows/compress-images.yml @@ -11,10 +11,11 @@ on: jobs: build: name: calibreapp/image-actions + if: github.actor != 'github-actions[bot]' runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Compress Images uses: calibreapp/image-actions@main diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 00492084c8..8ad4a49727 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -8,6 +8,8 @@ on: jobs: deploy: + # Skip PR runs triggered by the image compression bot's commits; always deploy pushes to master + if: github.event_name != 'pull_request' || github.actor != 'github-actions[bot]' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/hugo-preview.yml b/.github/workflows/hugo-preview.yml index c96f4d6e50..2b1ee797d3 100644 --- a/.github/workflows/hugo-preview.yml +++ b/.github/workflows/hugo-preview.yml @@ -5,6 +5,7 @@ on: jobs: build_preview: + if: github.actor != 'github-actions[bot]' runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 From 2ef04eb1f37c5cfd7ca72861b4eabc679966e813 Mon Sep 17 00:00:00 2001 From: AJaccP Date: Sat, 14 Nov 2026 10:58:25 -0500 Subject: [PATCH 2/2] only skip bot commits in compress images workflow Co-Authored-By: Claude Opus 5.5 --- .github/workflows/gh-pages.yml | 2 -- .github/workflows/hugo-preview.yml | 1 - 2 files changed, 3 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 8ad4a49727..00492084c8 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -8,8 +8,6 @@ on: jobs: deploy: - # Skip PR runs triggered by the image compression bot's commits; always deploy pushes to master - if: github.event_name != 'pull_request' || github.actor != 'github-actions[bot]' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/hugo-preview.yml b/.github/workflows/hugo-preview.yml index 2b1ee797d3..c96f4d6e50 100644 --- a/.github/workflows/hugo-preview.yml +++ b/.github/workflows/hugo-preview.yml @@ -5,7 +5,6 @@ on: jobs: build_preview: - if: github.actor != 'github-actions[bot]' runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3