Skip to content

Commit 9e5020b

Browse files
Merge pull request #1 from qualcomm-linux/mynameistechno-patch-1
Add repolinter workflow on PR to main
2 parents 52529f5 + da5ebf0 commit 9e5020b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Qualcomm Linux Organization Repolinter
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
repolinter:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repo
14+
uses: actions/checkout@v4
15+
- name: Verify repolinter config file is present
16+
id: check_files
17+
uses: andstor/file-existence-action@v3
18+
with:
19+
files: "repolint.json"
20+
- name: Run Repolinter with local repolint.json
21+
if: steps.check_files.outputs.files_exists == 'true'
22+
uses: todogroup/repolinter-action@v1
23+
with:
24+
config_file: "repolint.json"
25+
- name: Run Repolinter with default ruleset
26+
if: steps.check_files.outputs.files_exists == 'false'
27+
uses: todogroup/repolinter-action@v1
28+
with:
29+
config_url: "https://raw.githubusercontent.com/quic/.github/main/repolint.json"
30+

0 commit comments

Comments
 (0)