ceremony-ci-probe/actions/labels-scope/action.yml
claude-bot-andresmgsl 53efbfba2a fix: scope job derives additively — labeler v5's PUT clobbered mid-job labels
actions/labeler@v5 writes the whole label set (setLabels PUT) even under
sync-labels: false, so a label applied between its read and its write is
silently removed — ceremony#128 lost `release` that way. v6/v7 write the
same way. Replace the step with actions/labels-scope: same labeler.yml
mapping (changed-files/any-glob-to-any-file subset, refused loudly
otherwise), changed paths via the API, and an additive POST as the only
write.

Part of #130.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-24 11:51:48 +00:00

8 lines
278 B
YAML

name: Derive scope labels
description: Additively apply path-derived scope:* labels to a PR — the only write is POST (issue #130)
runs:
using: composite
steps:
- name: derive and add scope labels
shell: bash
run: bash "$GITHUB_ACTION_PATH/labels-scope.sh"