Skip to content

Commit fe6e426

Browse files
fix workflow lint
1 parent 7e24520 commit fe6e426

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
name: Lint workflows
22

33
on:
4-
pull_request:
5-
paths:
6-
- '.github/workflows/**'
7-
push:
8-
branches: [main]
4+
workflow_call:
5+
6+
permissions:
7+
contents: read
98

109
jobs:
1110
actionlint:
1211
runs-on: ubuntu-latest
1312
steps:
1413
- uses: actions/checkout@v4
14+
- name: Download actionlint
15+
id: get_actionlint
16+
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
17+
shell: bash
1518
- name: Run actionlint
16-
uses: docker://rhysd/actionlint:latest
17-
with:
18-
args: -color
19+
run: ${{ steps.get_actionlint.outputs.executable }} -color
20+
shell: bash

0 commit comments

Comments
 (0)