diff --git a/.github/workflows/pkg.pr.new.yml b/.github/workflows/pkg.pr.new.yml index 1e0d1dd9..dfb31850 100644 --- a/.github/workflows/pkg.pr.new.yml +++ b/.github/workflows/pkg.pr.new.yml @@ -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 }} @@ -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