Skip to content

Commit cf8c531

Browse files
committed
Skip the update-version job on a fork
This change prevents the job from being triggered when `release/*` branches are synchronized on a fork.
1 parent be60f78 commit cf8c531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/auto_update_version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
update-version:
11-
if: ${{ github.ref_type == 'branch' && startsWith(github.ref_name, 'release/') }}
11+
if: ${{ github.repository == 'swiftlang/swift-format' && github.ref_type == 'branch' && startsWith(github.ref_name, 'release/') }}
1212
runs-on: ubuntu-latest
1313
permissions:
1414
contents: write

0 commit comments

Comments
 (0)