Skip to content

Commit 80bcc35

Browse files
authored
Merge pull request #1074 from TTOzzi/fix-auto-update-version-action
Fix `auto_update_version` workflow to trigger only on release branch creation
2 parents a71b1ea + fe2c9b9 commit 80bcc35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/auto_update_version.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
name: Update PrintVersion on release branch creation
22

33
on:
4-
create:
5-
branches:
6-
- "release/*"
4+
create
75

86
jobs:
97
update-version:
8+
if: ${{ github.ref_type == 'branch' && startsWith(github.ref_name, 'release/') }}
109
runs-on: ubuntu-latest
1110
permissions:
1211
contents: write
@@ -16,6 +15,7 @@ jobs:
1615
uses: actions/checkout@v4
1716
with:
1817
fetch-depth: 0
18+
ref: ${{ github.ref }}
1919
token: ${{ github.token }}
2020

2121
- name: Extract version from branch name

0 commit comments

Comments
 (0)