Skip to content

Commit

Permalink
Merge pull request #44 from SableRaf/main
Browse files Browse the repository at this point in the history
Fix conditional check for `new contribution` label
  • Loading branch information
SableRaf authored Jan 11, 2025
2 parents 63b2d47 + 8f05286 commit d5b14cb
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 d5b14cb

Please sign in to comment.