forked from gustavopch/tsc-files
-
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 916 Bytes
/
check-workflows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Check Workflows
on:
push:
branches:
- main
- 'renovate/**'
paths:
- '.github/workflows/**.yml'
pull_request:
branches:
- main
paths:
- '.github/workflows/**.yml'
workflow_dispatch:
workflow_call:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Run actionlint
run: |
# add problem matcher for actionlint
wget https://raw.githubusercontent.com/rhysd/actionlint/main/.github/actionlint-matcher.json \
-O actionlint-matcher.json
echo "::add-matcher::actionlint-matcher.json"
# download and run actionlint
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
./actionlint -verbose -color