Skip to content

Commit 63f8732

Browse files
smuppandmwasilew
authored andcommitted
ci: add GitHub Actions workflow for Repolinter
This adds a basic Repolinter GitHub Actions workflow to ensure repository best practices and compliance with community standards are met. Signed-off-by: smuppand <[email protected]>
1 parent 41d799f commit 63f8732

File tree

1 file changed

+31
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)