forked from heavy-duty/ceremony
29 lines
1,019 B
YAML
29 lines
1,019 B
YAML
name: Changelog armed
|
|
description: >-
|
|
Assert the changelog is armed for the tree's version state — the
|
|
version-keyed guard (box#108, rig#66; the unconditional form was reverted
|
|
by rig#44 and cast#108). The caller must have checked out its own
|
|
repository first: the guard reads the consumer's tree at the workspace.
|
|
inputs:
|
|
version-source:
|
|
description: Where the tree's version lives ("file" or "package-json")
|
|
required: false
|
|
default: file
|
|
changelog:
|
|
description: Path to the changelog, relative to the workspace
|
|
required: false
|
|
default: CHANGELOG.md
|
|
fragments-dir:
|
|
description: Fragment directory whose presence selects fragment mode
|
|
required: false
|
|
default: changelog.d
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: changelog armed
|
|
shell: bash
|
|
env:
|
|
CHANGELOG: ${{ inputs.changelog }}
|
|
VERSION_SOURCE: ${{ inputs.version-source }}
|
|
FRAGMENTS_DIR: ${{ inputs.fragments-dir }}
|
|
run: bash "$GITHUB_ACTION_PATH/changelog-armed.sh"
|