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: