From 1aed00ae1b9bcbae8d0f00767df684050d3ea7d2 Mon Sep 17 00:00:00 2001 From: Artem Zakharchenko Date: Wed, 6 Nov 2024 19:20:17 +0100 Subject: [PATCH] chore(release-preview): always run for `workflow_dispatch` trigger --- .github/workflows/release-preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-preview.yml b/.github/workflows/release-preview.yml index c094269d5..d679baa0a 100644 --- a/.github/workflows/release-preview.yml +++ b/.github/workflows/release-preview.yml @@ -10,7 +10,7 @@ jobs: # Trigger the permissions check whenever someone approves a pull request. # They must have the write permissions to the repo in order to # trigger preview package publishing. - if: github.event.review.state == 'approved' + if: github.event_name == 'workflow_dispatch' || github.event.review.state == 'approved' runs-on: ubuntu-latest outputs: has-permissions: ${{ steps.checkPermissions.outputs.require-result }} @@ -25,7 +25,7 @@ jobs: # The approving user must pass the permissions check # to trigger the preview publish. needs: check - if: needs.check.outputs.has-permissions == 'true' + if: github.event_name == 'workflow_dispatch' || needs.check.outputs.has-permissions == 'true' runs-on: macos-latest steps: - name: Checkout