diff options
| author | Vadim Gusev <ubuntolog@gmail.com> | 2024-07-18 15:18:58 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-18 15:18:58 +0300 |
| commit | 9611c99746de95069f469c374e02bb3038435f97 (patch) | |
| tree | b02fd8ae5ff24d0954b71e3a49a2dfcbf36da9da /.github/workflows | |
| parent | ecced7863479256d97026967b22fb7419508f474 (diff) | |
fix(actions): add instruction and fix workflow trigger condition (#788)
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/create-release-draft.yaml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/create-release-draft.yaml b/.github/workflows/create-release-draft.yaml index af0931d..20ce16d 100644 --- a/.github/workflows/create-release-draft.yaml +++ b/.github/workflows/create-release-draft.yaml @@ -2,11 +2,14 @@ name: Create release draft on: workflow_dispatch: pull_request: + types: + - closed branches: - 'release-*' jobs: create-draft: + if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release') name: Create release draft runs-on: ubuntu-latest steps: @@ -35,6 +38,7 @@ jobs: run: | gh release create "v${{ steps.version.outputs.version }}" \ --title "v${{ steps.version.outputs.version }}" \ + --target "${{ github.base_ref }}" \ --generate-notes \ --draft \ dist/release/* |
