diff --git a/.github/workflows/repolinter.yml b/.github/workflows/repolinter.yml new file mode 100644 index 00000000..e69e0d78 --- /dev/null +++ b/.github/workflows/repolinter.yml @@ -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" \ No newline at end of file diff --git a/ci/yocto-check-layer.sh b/ci/yocto-check-layer.sh index c7185b73..80a2a6e8 100755 --- a/ci/yocto-check-layer.sh +++ b/ci/yocto-check-layer.sh @@ -1,4 +1,6 @@ #!/bin/sh -e +# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. +# SPDX-License-Identifier: MIT TOPDIR=$(realpath $(dirname $(readlink -f $0))/..)