2026-07-22 18:18:18 +00:00
|
|
|
name: Reconcile labels
|
|
|
|
|
description: Converge PR state and optionally bootstrap the label taxonomy
|
|
|
|
|
inputs:
|
|
|
|
|
bootstrap:
|
|
|
|
|
description: Whether to bootstrap labels before reconciling (yes or no)
|
|
|
|
|
required: true
|
|
|
|
|
default: "no"
|
|
|
|
|
runs:
|
|
|
|
|
using: composite
|
|
|
|
|
steps:
|
|
|
|
|
- name: validate bootstrap input
|
|
|
|
|
shell: bash
|
|
|
|
|
env:
|
|
|
|
|
BOOTSTRAP: ${{ inputs.bootstrap }}
|
|
|
|
|
run: |
|
|
|
|
|
case "$BOOTSTRAP" in
|
|
|
|
|
yes | no) ;;
|
|
|
|
|
*) echo "bootstrap must be 'yes' or 'no'" >&2; exit 2 ;;
|
|
|
|
|
esac
|
|
|
|
|
- name: reconcile labels
|
|
|
|
|
shell: bash
|
|
|
|
|
env:
|
|
|
|
|
BOOTSTRAP: ${{ inputs.bootstrap }}
|
|
|
|
|
LABELS_CONF: ${{ github.workspace }}/.github/labels.conf
|
|
|
|
|
run: |
|
2026-08-05 21:32:21 +00:00
|
|
|
# BOOTSTRAP passes through as-is: the script gates on the input. The
|
|
|
|
|
# export-the-event-name hack that lived here died with ceremony#215 —
|
|
|
|
|
# the script keyed on GITHUB_EVENT_NAME, which #209 made true for
|
|
|
|
|
# every machine wake, so "no" could never mean no.
|
2026-07-22 18:18:18 +00:00
|
|
|
bash "$GITHUB_ACTION_PATH/labels-reconcile.sh"
|