Skip to content

Commit

Permalink
chore: add permission check for the reviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Oct 27, 2024
1 parent dff3ec4 commit 87e711a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
jobs:
preview:
# Publish previews only for approved pull requests.
if: github.event.review.state == 'APPROVED'
# The reviewer must have push persmissions to trigger this job.
if: github.event.review.state == 'approved' && github.event.review.user.permissions.push == true
runs-on: macos-latest
steps:
- name: Checkout
Expand Down

0 comments on commit 87e711a

Please sign in to comment.