From 49f13ac7eadd9c8fbb9ea48aae02e6a508d9b3c7 Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Mon, 3 Jun 2024 18:27:14 +0900 Subject: [PATCH] ci: allow workflow action release to trigger publish on stable branches --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8663495643..bd1d1eb204 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -153,7 +153,7 @@ jobs: # only publish if we're on the stable branch - name: Conditionally remove 'publish = false' from workspace in release-plz.toml on stable branch - if: startsWith(github.ref_name, 'stable') && github.event_name != 'workflow_dispatch' + if: startsWith(github.ref_name, 'stable') run: | ls -la sed -i '/^\[workspace\]/,/^\[/ {/^publish = false$/d;}' ./release-plz.toml @@ -162,7 +162,7 @@ jobs: # only publish if we're on the stable branch - name: Conditionally remove 'git_release_draft = true' from workspace in release-plz.toml on stable branch - if: startsWith(github.ref_name, 'stable') && github.event_name != 'workflow_dispatch' + if: startsWith(github.ref_name, 'stable') run: | - name: upload to s3