ci(blocking-lables): cleanup lables with a pr closes

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers
2025-03-14 12:58:42 -07:00
parent da3f378d5d
commit b42b453f76
7 changed files with 74 additions and 72 deletions

View File

@@ -19,7 +19,7 @@ inputs:
the list order is the same as `labels`. Missing or blank values (e.g. `FFFFFF,,FFFFFF`) use the `default-color`
default-color:
description: default color to create labels with
default: "#D4C5F9"
default: "#ffffff"
runs:
using: "composite"

View File

@@ -1,5 +1,5 @@
name: Create Issue Comment
description: Create or updste an issue comment
description: Create or update an issue comment
inputs:
comment:
description: Comment Text
@@ -19,7 +19,7 @@ inputs:
required: true
repository:
description: the OWNER/REPOSITORY to operate on
required: true
default: ${{ github.repository }}
runs:
using: "composite"

View File

@@ -70,10 +70,12 @@ runs:
'
)
echo "label_ids=$data" >> "$GITHUB_OUTPUT"
echo "num_labels=$(jq -r 'length' <<< "$data")" >> "$GITHUB_OUTPUT"
- name: Delete Labels
id: delete_labels
shell: bash
if: fromJSON( steps.collect_labels.outputs.num_labels ) > 0
env:
GH_TOKEN: ${{ inputs.gh_token }}
LABELS: ${{ steps.collect_labels.outputs.label_ids }}