File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
.github/actions/changelog_labeller Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,16 @@ inputs:
1111 purge_labels :
1212 description : Whether to purge existing labels
1313 required : false
14+ type : boolean
1415 default : false
1516 purge_prefix :
1617 description : The prefix used when purging labels
1718 required : false
19+ type : string
1820 default : " backport-"
1921 label_to_add :
2022 description : The label(s) to be applied to the PR
23+ type : string
2124 required : true
2225
2326runs :
2730 id : label-strip-add
2831 # If breaking_changes or major_changes are pushed, then we always apply do_not_backport
2932 # and strip any existing backport-* labels
30- if : ${{ inputs.purge_labels }}
33+ if : ${{ fromJSON( inputs.purge_labels) }}
3134 shell : bash {0}
3235 run : |
3336 # If this includes breaking changes, then set the do_not_backport label and remove all
5154
5255 - name : Apply labels
5356 id : label-add
54- if : ${{ ! inputs.purge_labels }}
57+ if : ${{ ! fromJSON( inputs.purge_labels) }}
5558 shell : bash {0}
5659 run : |
5760 echo "Apply '${{ inputs.label_to_add }}'"
You can’t perform that action at this time.
0 commit comments