From d02174325b76d1d4a0ec0d00551f0935947b05c7 Mon Sep 17 00:00:00 2001 From: Leonard O'Sullivan Date: Thu, 26 Feb 2026 18:23:47 +1000 Subject: [PATCH] ci: skip checks for release-please PRs Skipped jobs report as "success" for required status checks, allowing release-please PRs to merge without waiting for checks that only validate code (not changelog/version changes). Co-Authored-By: Claude Opus 4.5 --- .github/workflows/go-tests.yml | 2 ++ .github/workflows/integration-tests.yml | 6 ++++-- .github/workflows/precommit.yml | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-tests.yml b/.github/workflows/go-tests.yml index 401ccda..69e5ea5 100644 --- a/.github/workflows/go-tests.yml +++ b/.github/workflows/go-tests.yml @@ -14,6 +14,8 @@ permissions: jobs: go-test: + # Skip for release-please PRs (skipped jobs report as "success" for required checks) + if: github.event_name == 'push' || !startsWith(github.head_ref, 'release-please--') runs-on: ubuntu-latest defaults: run: diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index a8ba9d0..6c341ae 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -15,9 +15,11 @@ permissions: jobs: integration-test: + # Skip for release-please PRs; only run on label or manual dispatch if: >- - github.event_name == 'workflow_dispatch' || - github.event.label.name == 'integration-test' + !startsWith(github.head_ref || '', 'release-please--') && + (github.event_name == 'workflow_dispatch' || + github.event.label.name == 'integration-test') runs-on: ubuntu-latest timeout-minutes: 15 environment: integration diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml index f243198..ae6551d 100644 --- a/.github/workflows/precommit.yml +++ b/.github/workflows/precommit.yml @@ -15,6 +15,8 @@ permissions: jobs: precommit: + # Skip for release-please PRs (skipped jobs report as "success" for required checks) + if: github.event_name == 'push' || !startsWith(github.head_ref, 'release-please--') runs-on: ubuntu-latest steps: - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4