#!/usr/bin/env bash set -euo pipefail validator="${ACTIONLINT_BIN:-actionlint}" # Actionlint parses GitHub syntax. Normalize only Gitea's absolute action URLs; # this is static validation, not an act_runner execution test. for workflow in .gitea/workflows/*.yml; do sed 's#uses: https://github.com/#uses: #' "$workflow" | "$validator" -config-file .gitea/actionlint.yaml -shellcheck='' -stdin-filename "$workflow" - done bash -n scripts/ci/*.sh python3 scripts/ci/test_release_checks.py