ceremony-ci-probe/.github/scripts/actionlint-all.sh
2026-07-22 16:56:25 +00:00

21 lines
444 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
cd "$(git rev-parse --show-toplevel)"
mapfile -t files < <(
{
git ls-files '.github/workflows/*.yml'
git ls-files 'actions/*/action.yml'
} | sort -u
)
[ "${#files[@]}" -gt 0 ] || {
echo "actionlint-all: found no workflow or action files — the sweep is broken" >&2
exit 1
}
printf 'actionlint: linting %d files\n' "${#files[@]}"
printf ' %s\n' "${files[@]}"
actionlint "${files[@]}"