Skip to content

Commit

Permalink
chore: Fix labelled logic for pkg.pr.new
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Oct 30, 2024
1 parent 89f2b02 commit 4c2b46a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
name: Check for relevant changes to deploy
if: |
github.event.review.state == 'APPROVED' ||
contains(github.event.pull_request.author_association, 'MEMBER')
contains(github.event.pull_request.author_association, 'MEMBER') ||
contains(github.event.pull_request.labels.*.name, 'deploy:preview')
runs-on: ubuntu-latest
outputs:
enable: ${{ steps.check-for-changes.outputs.enable }}
Expand All @@ -31,7 +32,7 @@ jobs:
deploy-preview:
name: Deploy to pkg.pr.new
needs: check-changes
if: needs.check-changes.outputs.enable == 'true' || contains(github.event.pull_request.labels.*.name, 'deploy:preview')
if: needs.check-changes.outputs.enable == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
Expand Down

0 comments on commit 4c2b46a

Please sign in to comment.