Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 652fc04

Browse files
committedAug 14, 2024·
ci: Add actionlint workflow for code quality checks
1 parent 8200e7d commit 652fc04

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
 

‎.github/workflows/actionlint.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: actionlint
3+
4+
run-name: Actionlint
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- "main"
10+
paths:
11+
- ".github/workflows/*.yml"
12+
13+
concurrency:
14+
group: ${{ github.ref }}-${{ github.workflow }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
skip_duplicate_actions:
19+
name: Skip Duplicate Actions
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: fkirc/skip-duplicate-actions@master
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
cancel_others: true
26+
concurrent_skipping: never
27+
28+
actionlint:
29+
name: Actionlint
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout code
33+
uses: actions/checkout@v4
34+
with:
35+
fetch-depth: 0
36+
37+
- name: Call Dagger Function
38+
uses: dagger/dagger-for-github@v6
39+
with:
40+
args: check --source=. stdout
41+
module: github.com/softwaredevelop/daggerverse/actionlint@main
42+
verb: call
43+
version: "latest"
44+
workdir: .github/workflows

0 commit comments

Comments
 (0)
Please sign in to comment.