Skip to content

Commit 1e835e5

Browse files
authored
Dispatch publish extension action on merge of update version and CHANGELOG for release PR (#2292)
1 parent 82599a9 commit 1e835e5

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/create-release-pr.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ jobs:
5959
6060
Please close and reopen this PR to run the required workflows (Required statuses must pass before merging).
6161
62-
**This needs to be approved and merged before we run the `publish` workflow.**
63-
commit-message: 'update version and changelog for release'
62+
**The `publish` workflow will run automatically when this PR is merged.**
63+
commit-message: 'Update version and CHANGELOG for release'
6464
title: 'Update version and CHANGELOG for release'
6565
token: ${{ secrets.GITHUB_TOKEN }}
66+
labels: make release go now

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
name: Publish Extension
22

3-
on: workflow_dispatch
3+
on:
4+
pull_request:
5+
types: [closed]
46

57
jobs:
68
deploy:
9+
if: |
10+
github.event.pull_request.merged == true &&
11+
contains(github.event.pull_request.labels.*.name, 'make release go now') &&
12+
github.event.pull_request.title == 'Update version and CHANGELOG for release'
713
runs-on: ubuntu-latest
814
timeout-minutes: 20
915
steps:

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
CHANGELOG.md
2+
.github/workflows/publish.yml

0 commit comments

Comments
 (0)