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:
2
.github/actions/add-labels/action.yml
vendored
2
.github/actions/add-labels/action.yml
vendored
@@ -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"
|
||||
|
||||
4
.github/actions/create-comment/action.yml
vendored
4
.github/actions/create-comment/action.yml
vendored
@@ -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"
|
||||
|
||||
2
.github/actions/delete-labels/action.yml
vendored
2
.github/actions/delete-labels/action.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user