From 9034a8dd38e915a536cfc9ebc091f51fb3e0c717 Mon Sep 17 00:00:00 2001 From: Jakob Jensen Date: Sat, 7 Mar 2026 00:13:03 +0100 Subject: [PATCH] feat: avoid sync-tags job when no updates are committed --- .github/workflows/scheduled-jobs.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scheduled-jobs.yaml b/.github/workflows/scheduled-jobs.yaml index 8f7fc5c46..21f146911 100644 --- a/.github/workflows/scheduled-jobs.yaml +++ b/.github/workflows/scheduled-jobs.yaml @@ -29,6 +29,8 @@ jobs: if: github.repository == 'CustomResourceDefinition/catalog' || github.event_name == 'workflow_dispatch' permissions: contents: write + outputs: + updated: ${{ steps.committer.outputs.pushed }} steps: - uses: actions/checkout@v6 with: @@ -72,6 +74,7 @@ jobs: - uses: EndBug/add-and-commit@v9 name: Publish changes if: github.repository == 'CustomResourceDefinition/catalog' && github.ref == 'refs/heads/main' + id: committer with: add: | - schema @@ -105,7 +108,7 @@ jobs: name: Synchronize tags with kubernetes runs-on: ubuntu-latest needs: update-schemas - if: github.repository == 'CustomResourceDefinition/catalog' && github.ref == 'refs/heads/main' + if: github.repository == 'CustomResourceDefinition/catalog' && github.ref == 'refs/heads/main' && needs.update-schemas.outputs.updated permissions: contents: write steps: