From a5a62193bc81d7e1ca619755358c0d57ad4f1a5a Mon Sep 17 00:00:00 2001 From: Mark Matyas Date: Thu, 21 Dec 2023 09:28:33 -0800 Subject: [PATCH] Add QuIC Repolinter PR checks Signed-off-by: Mark Matyas --- .../quic-organization-repolinter.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/quic-organization-repolinter.yml diff --git a/.github/workflows/quic-organization-repolinter.yml b/.github/workflows/quic-organization-repolinter.yml new file mode 100644 index 00000000..a9dd91c4 --- /dev/null +++ b/.github/workflows/quic-organization-repolinter.yml @@ -0,0 +1,30 @@ +name: QuIC Organization Repolinter + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + repolinter: + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + - name: Verify repolinter config file is present + id: check_files + uses: andstor/file-existence-action@v1 + 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" +