2023-04-04 13:39:10 +00:00
|
|
|
name: CI
|
2023-03-09 11:34:41 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- ".github/workflows/**"
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- ".github/workflows/**"
|
|
|
|
branches:
|
|
|
|
- main
|
2023-04-20 08:47:03 +00:00
|
|
|
- "!v[0-9]*"
|
2023-03-09 11:34:41 +00:00
|
|
|
|
2023-06-02 17:14:21 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2023-03-09 11:34:41 +00:00
|
|
|
jobs:
|
|
|
|
lint-workflows:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-10-18 09:06:36 +00:00
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2023-03-09 11:34:41 +00:00
|
|
|
# From https://github.com/rhysd/actionlint/blob/main/docs/usage.md#use-actionlint-on-github-actions
|
|
|
|
- name: Check workflow files
|
|
|
|
run: |
|
2023-08-05 08:34:47 +00:00
|
|
|
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/590d3bd9dde0c91f7a66071d40eb84716526e5a6/scripts/download-actionlint.bash) 1.6.25
|
2023-03-09 11:34:41 +00:00
|
|
|
./actionlint -color -shellcheck=""
|