Merge pull request #3098 from planetarium/release/1.21.0-to-development #675
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: validate GitHub Actions workflows | |
on: | |
push: | |
schedule: | |
- cron: "0 0 * * *" | |
pull_request: | |
paths: | |
- .github/workflows/* | |
jobs: | |
validate-github-actions-workflows: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
set -ev | |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | |
args=() | |
if [ "${{ github.event_name }}" != "schedule" ]; then | |
args+=("-ignore" "the runner of \".+\" action is too old to run on GitHub Actions.") | |
fi | |
./actionlint "${args[@]}" |