Skip to content

Commit fbc2a57

Browse files
committed
Fix release workflow to trigger on tag build (v*)
1 parent bd17dca commit fbc2a57

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- main
77
- develop
88
- release
9+
tags:
10+
- 'v*'
911
paths-ignore:
1012
- "README.md"
1113
pull_request:

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflows:
66
- Build
77
branches:
8-
- release
8+
- 'v*'
99
types:
1010
- completed
1111

@@ -24,7 +24,7 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v7
2626
with:
27-
ref: release
27+
ref: ${{ github.event.workflow_run.head_branch }}
2828
- uses: fregante/setup-git-user@v2
2929
- name: Set up JDK 11
3030
uses: actions/setup-java@v5

0 commit comments

Comments
 (0)