From 4c2b46a6b8e7f67aad77cd6e02630eedf11c46ea Mon Sep 17 00:00:00 2001 From: Francois Best Date: Wed, 30 Oct 2024 08:45:56 +0100 Subject: [PATCH] chore: Fix labelled logic for pkg.pr.new --- .github/workflows/pkg.pr.new.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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