From 075ec340fa2423c0f1f333b73f93ed09de2b2e4e Mon Sep 17 00:00:00 2001 From: Daniel Young Lee Date: Wed, 26 Apr 2023 16:17:28 -0700 Subject: [PATCH 1/2] Fix release script. --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 12462f7..2355138 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -74,7 +74,7 @@ jobs: if: github.event.pull_request.merged && github.ref == 'main' && contains(github.event.pull_request.labels.*.name, 'release:publish') && - startsWith(github.event.pull_request.title, '[chore] Release ') + startsWith(github.event.pull_request.title, 'chore: Release ') runs-on: ubuntu-latest From deab31857d8a176174e2f23a0c05e31dd7a95fa9 Mon Sep 17 00:00:00 2001 From: Daniel Young Lee Date: Wed, 26 Apr 2023 16:22:05 -0700 Subject: [PATCH 2/2] Fix it moregit add .github --- .github/workflows/release.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2355138..bdd249a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -70,8 +70,9 @@ jobs: # 1. merged # 2. to the main branch # 3. with the label 'release:publish', and - # 4. the title prefix '[chore] Release '. - if: github.event.pull_request.merged && + # 4. the title prefix 'chore: Release '. + if: > + github.event.pull_request.merged && github.ref == 'main' && contains(github.event.pull_request.labels.*.name, 'release:publish') && startsWith(github.event.pull_request.title, 'chore: Release ')