Skip to content

Commit

Permalink
Merge pull request #2990 from moreal/fix-workflows
Browse files Browse the repository at this point in the history
ci: run gh-actions validation every pushing and cron
  • Loading branch information
moreal authored Nov 7, 2024
2 parents c14e0f4 + 167efd2 commit 020a494
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/validate-github-actions-workflows.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: validate GitHub Actions workflows
on:
push:
paths:
- .github/workflows/*

schedule:
- cron: "0 0 * * *"
pull_request:
paths:
- .github/workflows/*
Expand All @@ -14,5 +13,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: |
set -ev
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
./actionlint
args=()
if [ "${{ github.event_name }}" != "schedule" ]; then
args+=("-ignore" "the runner of \".+\" action is too old to run on GitHub Actions.")
fi
./actionlint "${args[@]}"

0 comments on commit 020a494

Please sign in to comment.