diff --git a/.github/workflows/validate-yamls.yaml b/.github/workflows/validate-yamls.yaml new file mode 100644 index 0000000000..e304c31f37 --- /dev/null +++ b/.github/workflows/validate-yamls.yaml @@ -0,0 +1,41 @@ +name: Validate Longhorn YAMLs + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + - reopened + +permissions: + contents: read + pull-requests: read + +jobs: + validate-yamls: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - name: Install yamllint + run: | + sudo apt-get update + sudo apt-get install -y yamllint + + - name: Create yamllint config + run: | + cat > .yamllint <