Skip to content

Commit b9cb7b2

Browse files
author
Foscat
committed
fix: prevent hotfix PR version drift
1 parent a99d50e commit b9cb7b2

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

.github/workflows/sync-package-version-with-main.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
name: Sync Package Version With Main
22

33
on:
4-
pull_request:
5-
branches:
6-
- main
7-
types:
8-
- opened
9-
- reopened
10-
- synchronize
11-
- ready_for_review
4+
# Release and hotfix branches intentionally carry versions that can differ
5+
# from main, so this workflow must stay opt-in instead of mutating PR heads.
126
workflow_dispatch:
137

148
permissions:
@@ -17,7 +11,6 @@ permissions:
1711
jobs:
1812
sync-package-version:
1913
if: >
20-
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
2114
!startsWith(github.head_ref || github.ref_name, 'release/')
2215
runs-on: ubuntu-latest
2316
steps:

0 commit comments

Comments
 (0)