Skip to content

Commit

Permalink
chore(release-preview): always run for workflow_dispatch trigger (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito authored Nov 6, 2024
1 parent 6702d77 commit 3135575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit 3135575

Please sign in to comment.