diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 95b2dc4..8e4a87e 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -1,6 +1,11 @@ --- name: yaml-lint -on: [push] +on: pull_request + +permissions: + contents: write + pull-requests: write + jobs: lint-yaml-files: runs-on: ubuntu-latest @@ -10,3 +15,9 @@ jobs: uses: ibiqlik/action-yamllint@v3 with: config_file: .yamllint + + - name: Enable auto-merge for all patch versions + run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}