File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 66 package :
77 required : true
88 type : string
9+ check_license :
10+ required : false
11+ type : boolean
12+ default : false
913
1014env :
1115 GH_TOKEN : ${{ github.token }}
@@ -139,10 +143,12 @@ jobs:
139143 PR_TITLE="${{ github.event.pull_request.title }}"
140144 PR_BODY="${{ github.event.pull_request.body }}"
141145
142- if [[ ! "$PR_BODY" =~ \|\ License[\ ]+\|\ MIT ]]; then
143- echo "::error::You must add the standard contribution header in the PR description"
144- echo "See https://symfony.com/doc/current/contributing/code/patches.html#make-a-pull-request"
145- exit 1
146+ if [[ "${{ inputs.check_license }}" == "true" ]]; then
147+ if [[ ! "$PR_BODY" =~ \|\ License[\ ]+\|\ MIT ]]; then
148+ echo "::error::You must add the standard contribution header in the PR description"
149+ echo "See https://symfony.com/doc/current/contributing/code/patches.html#make-a-pull-request"
150+ exit 1
151+ fi
146152 fi
147153
148154 if [[ "$PR_TITLE" =~ (feat|fix|docs|style|refactor|perf|test|chore|revert|build|ci|types?|wip)[:()] ]]; then
Original file line number Diff line number Diff line change 1212 uses : ./.github/workflows/callable-fabbot.yml
1313 with :
1414 package : Symfony
15+ check_license : true
You can’t perform that action at this time.
0 commit comments