Skip to content

Commit 3e77253

Browse files
authored
Fixup purge_labels evaluation (#167)
1 parent f7e390b commit 3e77253

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/actions/changelog_labeller/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

2326
runs:
@@ -27,7 +30,7 @@ runs:
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
@@ -51,7 +54,7 @@ runs:
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 }}'"

0 commit comments

Comments
 (0)