From 2c43ee54ce075d7cb5a475941aa0235c47f95af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl?= Date: Sat, 11 Jan 2025 19:01:15 +0100 Subject: [PATCH] Fix conditional checks for 'new contribution' label in issue_to_pr workflow --- .github/workflows/issue_to_pr.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/issue_to_pr.yml b/.github/workflows/issue_to_pr.yml index 59123a7..1bebfad 100644 --- a/.github/workflows/issue_to_pr.yml +++ b/.github/workflows/issue_to_pr.yml @@ -5,7 +5,6 @@ on: - opened - edited - reopened - if: contains(github.event.issue.labels.*.name, 'new contribution') permissions: contents: write issues: write @@ -13,6 +12,8 @@ permissions: jobs: validate: + # Only run this job if the issue has the 'new contribution' label + if: contains(github.event.issue.labels.*.name, 'new contribution') runs-on: ubuntu-latest outputs: props: ${{ steps.parseProps.outputs.props }} @@ -101,6 +102,8 @@ jobs: ${{ steps.parseProps.outputs.error }} create-pr: + # Only run this job if the issue has the 'new contribution' label + if: contains(github.event.issue.labels.*.name, 'new contribution') needs: validate env: BRANCH_NAME: issue-${{ github.event.issue.number }}