Skip to content

Commit d7712a6

Browse files
authored
Update release.yml
1 parent 2bb9b2d commit d7712a6

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Release
1+
name: release
22

33
on:
44
workflow_run:
5-
workflows: ["Test"]
5+
workflows: ["tests", "linter"]
66
types: [completed]
77
pull_request:
88
branches: ["master"]
@@ -12,9 +12,7 @@ permissions:
1212

1313
jobs:
1414
release:
15-
if: >
16-
github.event.workflow_run.conclusion == 'success' &&
17-
github.event.workflow_run.head_branch == 'master'
15+
if: github.event.pull_request.merged == true
1816
runs-on: ubuntu-latest
1917
steps:
2018
- name: Checkout
@@ -112,4 +110,4 @@ jobs:
112110
generate_release_notes: true
113111
env:
114112
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115-
113+

0 commit comments

Comments
 (0)