Skip to content

Commit 51f760c

Browse files
fix(actionlint): add actionlint config file (#489)
1 parent 0dc2ee5 commit 51f760c

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

.github/actionlint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
# https://github.com/rhysd/actionlint/blob/v1.7.7/docs/config.md
3+
self-hosted-runner:
4+
labels:
5+
- windows-11-arm # remove after https://github.com/rhysd/actionlint/pull/542 is merged

.github/workflows/__call-common-lint.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,16 @@ jobs:
8888
- name: Install actionlint
8989
id: get_actionlint
9090
shell: bash
91-
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
91+
run: |
92+
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
93+
94+
if [ ! -f ".github/actionlint.yml" ]; then
95+
curl \
96+
-fsSL \
97+
--retry 3 \
98+
-o ".github/actionlint.yml" \
99+
"https://raw.githubusercontent.com/LizardByte/.github/master/.github/actionlint.yml"
100+
fi
92101
93102
- name: Replace shell
94103
shell: bash

0 commit comments

Comments
 (0)