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 6
6
package :
7
7
required : true
8
8
type : string
9
+ check_license :
10
+ required : false
11
+ type : boolean
12
+ default : false
9
13
10
14
env :
11
15
GH_TOKEN : ${{ github.token }}
@@ -139,10 +143,12 @@ jobs:
139
143
PR_TITLE="${{ github.event.pull_request.title }}"
140
144
PR_BODY="${{ github.event.pull_request.body }}"
141
145
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
146
152
fi
147
153
148
154
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 12
12
uses : ./.github/workflows/callable-fabbot.yml
13
13
with :
14
14
package : Symfony
15
+ check_license : true
You can’t perform that action at this time.
0 commit comments