Skip to content

Commit

Permalink
Fix conditional checks for 'new contribution' label in issue_to_pr wo…
Browse files Browse the repository at this point in the history
…rkflow
  • Loading branch information
SableRaf committed Jan 11, 2025
1 parent 0cff20f commit 2c43ee5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/issue_to_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ on:
- opened
- edited
- reopened
if: contains(github.event.issue.labels.*.name, 'new contribution')
permissions:
contents: write
issues: write
pull-requests: write

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 }}
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 2c43ee5

Please sign in to comment.