Skip to content

Commit 3ef9d02

Browse files
authored
Merge pull request #1091 from kkebo/skip-update-version-on-a-fork
Skip the `update-version` job on a fork
2 parents be60f78 + cf8c531 commit 3ef9d02

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)