diff --git a/.github/workflows/definition-lint.yml b/.github/workflows/definition-lint.yml index bdfa61c0d..b5629ccf7 100644 --- a/.github/workflows/definition-lint.yml +++ b/.github/workflows/definition-lint.yml @@ -19,7 +19,25 @@ env: GO_VERSION: '1.23.8' jobs: + detect-noop: + permissions: + actions: write # for fkirc/skip-duplicate-actions to skip or stop workflow runs + runs-on: ubuntu-22.04 + outputs: + noop: ${{ steps.noop.outputs.should_skip }} + steps: + - name: Detect No-op Changes + id: noop + uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + paths_ignore: '["**.md", "**.mdx", "**.png", "**.jpg"]' + do_not_skip: '["workflow_dispatch", "schedule", "push"]' + continue-on-error: true + definition-doc: + needs: detect-noop + if: needs.detect-noop.outputs.noop != 'true' runs-on: ubuntu-22.04 steps: - name: Setup Go diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index faf91b0a5..1e37f94ea 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -13,7 +13,25 @@ permissions: contents: read jobs: + detect-noop: + permissions: + actions: write # for fkirc/skip-duplicate-actions to skip or stop workflow runs + runs-on: ubuntu-22.04 + outputs: + noop: ${{ steps.noop.outputs.should_skip }} + steps: + - name: Detect No-op Changes + id: noop + uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + paths_ignore: '["**.md", "**.mdx", "**.png", "**.jpg"]' + do_not_skip: '["workflow_dispatch", "schedule", "push"]' + continue-on-error: true + license_check: + needs: detect-noop + if: needs.detect-noop.outputs.noop != 'true' runs-on: ubuntu-22.04 name: Check for unapproved licenses steps: diff --git a/.github/workflows/trivy-scan.yml b/.github/workflows/trivy-scan.yml index 12d566b40..6fc685e7c 100644 --- a/.github/workflows/trivy-scan.yml +++ b/.github/workflows/trivy-scan.yml @@ -8,7 +8,25 @@ permissions: contents: read jobs: + detect-noop: + permissions: + actions: write # for fkirc/skip-duplicate-actions to skip or stop workflow runs + runs-on: ubuntu-22.04 + outputs: + noop: ${{ steps.noop.outputs.should_skip }} + steps: + - name: Detect No-op Changes + id: noop + uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + paths_ignore: '["**.md", "**.mdx", "**.png", "**.jpg"]' + do_not_skip: '["workflow_dispatch", "schedule", "push"]' + continue-on-error: true + images: + needs: detect-noop + if: needs.detect-noop.outputs.noop != 'true' name: Image Scan runs-on: ubuntu-22.04 steps: diff --git a/.github/workflows/webhook-upgrade-validation.yml b/.github/workflows/webhook-upgrade-validation.yml index 5e8bceb1f..b674c059a 100644 --- a/.github/workflows/webhook-upgrade-validation.yml +++ b/.github/workflows/webhook-upgrade-validation.yml @@ -20,7 +20,25 @@ env: GO_VERSION: '1.23.8' jobs: + detect-noop: + permissions: + actions: write # for fkirc/skip-duplicate-actions to skip or stop workflow runs + runs-on: ubuntu-22.04 + outputs: + noop: ${{ steps.noop.outputs.should_skip }} + steps: + - name: Detect No-op Changes + id: noop + uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + paths_ignore: '["**.md", "**.mdx", "**.png", "**.jpg"]' + do_not_skip: '["workflow_dispatch", "schedule", "push"]' + continue-on-error: true + webhook-upgrade-check: + needs: detect-noop + if: needs.detect-noop.outputs.noop != 'true' runs-on: ubuntu-22.04 timeout-minutes: 30 steps: