From cf8c53196930e1b5a6dd770f8d08f7b684a47e30 Mon Sep 17 00:00:00 2001 From: Kenta Kubo <601636+kkebo@users.noreply.github.com> Date: Fri, 14 Nov 2025 01:10:05 +0900 Subject: [PATCH] Skip the `update-version` job on a fork This change prevents the job from being triggered when `release/*` branches are synchronized on a fork. --- .github/workflows/auto_update_version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto_update_version.yml b/.github/workflows/auto_update_version.yml index 018f9005..0561e26a 100644 --- a/.github/workflows/auto_update_version.yml +++ b/.github/workflows/auto_update_version.yml @@ -8,7 +8,7 @@ on: jobs: update-version: - if: ${{ github.ref_type == 'branch' && startsWith(github.ref_name, 'release/') }} + if: ${{ github.repository == 'swiftlang/swift-format' && github.ref_type == 'branch' && startsWith(github.ref_name, 'release/') }} runs-on: ubuntu-latest permissions: contents: write