ceremony/actions/labels-reconcile/action.yml
2026-07-22 18:18:18 +00:00

29 lines
858 B
YAML

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: |
if [ "$BOOTSTRAP" = yes ]; then
export GITHUB_EVENT_NAME=workflow_dispatch
fi
bash "$GITHUB_ACTION_PATH/labels-reconcile.sh"