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