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:
11
11
purge_labels :
12
12
description : Whether to purge existing labels
13
13
required : false
14
+ type : boolean
14
15
default : false
15
16
purge_prefix :
16
17
description : The prefix used when purging labels
17
18
required : false
19
+ type : string
18
20
default : " backport-"
19
21
label_to_add :
20
22
description : The label(s) to be applied to the PR
23
+ type : string
21
24
required : true
22
25
23
26
runs :
27
30
id : label-strip-add
28
31
# If breaking_changes or major_changes are pushed, then we always apply do_not_backport
29
32
# and strip any existing backport-* labels
30
- if : ${{ inputs.purge_labels }}
33
+ if : ${{ fromJSON( inputs.purge_labels) }}
31
34
shell : bash {0}
32
35
run : |
33
36
# If this includes breaking changes, then set the do_not_backport label and remove all
51
54
52
55
- name : Apply labels
53
56
id : label-add
54
- if : ${{ ! inputs.purge_labels }}
57
+ if : ${{ ! fromJSON( inputs.purge_labels) }}
55
58
shell : bash {0}
56
59
run : |
57
60
echo "Apply '${{ inputs.label_to_add }}'"
You can’t perform that action at this time.
0 commit comments