From 9ee18a14ae901d082363583d09e0b357d6ebf1b0 Mon Sep 17 00:00:00 2001 From: quic-nwtn <162972850+quic-nwtn@users.noreply.github.com> Date: Tue, 7 May 2024 19:23:11 +0530 Subject: [PATCH] Create quic-organization-repolinter.yml Signed-off-by: quic-nwtn <162972850+quic-nwtn@users.noreply.github.com> --- .../quic-organization-repolinter.yml | 31 +++++++++++++++++++ 1 file changed, 31 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 000000000000..faaea08fb515 --- /dev/null +++ b/.github/workflows/quic-organization-repolinter.yml @@ -0,0 +1,31 @@ +name: QuIC Organization Repolinter + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + workflow_dispatch: + +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" +