Skip to content

Commit

Permalink
ci: Add Repolinter check for main
Browse files Browse the repository at this point in the history
Adds the Repolinter check on push and PRs to main.

Signed-off-by: Mark Matyas <[email protected]>
  • Loading branch information
mynameistechno authored and ricardosalveti committed Oct 9, 2024
1 parent ee8afe5 commit 2b2e517
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/repolinter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: QuIC Organization Repolinter

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
repolinter:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Verify repolinter config file is present
id: check_files
uses: andstor/file-existence-action@v3
with:
files: "repolint.json"
- name: Run Repolinter with local repolint.json
if: steps.check_files.outputs.files_exists == 'true'
uses: todogroup/repolinter-action@v1
with:
config_file: "repolint.json"
- name: Run Repolinter with default ruleset
if: steps.check_files.outputs.files_exists == 'false'
uses: todogroup/repolinter-action@v1
with:
config_url: "https://raw.githubusercontent.com/quic/.github/main/repolint.json"

0 comments on commit 2b2e517

Please sign in to comment.