Skip to content

Merge pull request #3098 from planetarium/release/1.21.0-to-development #675

Merge pull request #3098 from planetarium/release/1.21.0-to-development

Merge pull request #3098 from planetarium/release/1.21.0-to-development #675

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[@]}"