Skip to content

Commit 764df65

Browse files
committed
Fix release draft trigger
The branches filter is the target, not the PR branch.
1 parent cd15862 commit 764df65

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
types:
1111
- closed
1212
branches:
13-
- "update/**"
13+
- main
1414

1515
permissions:
1616
contents: write # For creating releases.
@@ -26,7 +26,9 @@ jobs:
2626
package-linux:
2727
name: ${{ format('linux-{0}', matrix.vscode_arch) }}
2828
runs-on: ubuntu-22.04
29-
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
29+
if: >-
30+
(github.event_name == 'workflow_dispatch') ||
31+
(github.event_name == 'pull_request_target' && github.event.pull_request.merged == true && startsWith(github.head_ref, 'update/'))
3032
3133
strategy:
3234
matrix:

0 commit comments

Comments
 (0)