[CI/Build] Add linting for github actions workflows (#7876)

Signed-off-by: Russell Bryant <rbryant@redhat.com>
This commit is contained in:
Russell Bryant
2024-10-07 17:18:10 -04:00
committed by GitHub
parent 93cf74a8a7
commit e0dbdb013d
11 changed files with 87 additions and 14 deletions

13
tools/actionlint.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
if command -v actionlint &> /dev/null; then
actionlint "$@"
exit 0
elif [ -x ./actionlint ]; then
./actionlint "$@"
exit 0
fi
# download a binary to the current directory - v1.7.3
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/aa0a7be8e566b096e64a5df8ff290ec24fa58fbc/scripts/download-actionlint.bash)
./actionlint "$@"