Skip to content

Commit 81d77bf

Browse files
authored
Merge pull request #18 from fac/org-wide-reusable-actionlint-workflow
Use org-wide reusable workflow for actionlint
2 parents be4308e + dd68309 commit 81d77bf

2 files changed

Lines changed: 35 additions & 23 deletions

File tree

‎.github/workflows/reviewdog.yml‎

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
1-
name: reviewdog
2-
on: [pull_request]
1+
name: Lint workflow files
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/workflows/*.yml'
7+
- '.github/workflows/*.yaml'
8+
pull_request:
9+
types:
10+
- opened
11+
- reopened
12+
- synchronize
13+
paths:
14+
- '.github/workflows/*.yml'
15+
- '.github/workflows/*.yaml'
16+
17+
permissions:
18+
pull-requests: write
19+
contents: read
20+
321
jobs:
422
actionlint:
5-
name: runner / actionlint
6-
runs-on: ubuntu-latest
7-
steps:
8-
- uses: actions/checkout@v3
9-
with:
10-
fetch-depth: 0
11-
- name: actionlint
12-
uses: reviewdog/action-actionlint@v1.33.0
13-
with:
14-
fail_on_error: true
15-
reporter: github-pr-review
16-
shellcheck:
17-
name: runner / shellcheck
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v3
21-
- name: shellcheck
22-
uses: reviewdog/action-shellcheck@v1
23-
with:
24-
fail_on_error: true
25-
reporter: github-pr-review
23+
uses: fac/hermod/.github/workflows/actionlint.yml@master
24+
secrets: inherit

‎.github/workflows/shellcheck.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Shellcheck
2+
on: [pull_request]
3+
jobs:
4+
shellcheck:
5+
name: runner / shellcheck
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- name: shellcheck
10+
uses: reviewdog/action-shellcheck@v1
11+
with:
12+
fail_on_error: true
13+
reporter: github-pr-review

0 commit comments

Comments
 (0)