From 9c5cd7f97df178a83751b0abc23f7eb1874cd027 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Sun, 15 Oct 2023 22:14:01 +0200 Subject: [PATCH] Don't cancel non-patch preparation when triggered manually --- .github/workflows/prepare-non-patch-release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prepare-non-patch-release.yml b/.github/workflows/prepare-non-patch-release.yml index c0b79df361b9..fe7326f00c16 100644 --- a/.github/workflows/prepare-non-patch-release.yml +++ b/.github/workflows/prepare-non-patch-release.yml @@ -93,13 +93,14 @@ jobs: run: git fetch --tags origin - name: Check for unreleased changes + if: github.event_name != 'workflow_dispatch' id: unreleased-changes env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: yarn release:unreleased-changes-exists - name: Cancel when no release necessary - if: steps.unreleased-changes.outputs.has-changes-to-release == 'false' + if: steps.unreleased-changes.outputs.has-changes-to-release == 'false' && github.event_name != 'workflow_dispatch' env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # From https://stackoverflow.com/a/75809743