From d1b24b15d5eeaa576c3b8d08e9023a29983759ef Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 27 Mar 2025 21:42:28 -0400 Subject: [PATCH] chore: Attempt auto-lint of Codegen PR's (#8816) --- .github/workflows/lint.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000000..5fea830a21 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,30 @@ +name: Lint + +on: + pull_request: + branches: [ main ] + +jobs: + run-linters: + if: startsWith(github.head_ref, 'gen/') + name: Run linters + runs-on: ubuntu-latest + + permissions: + # Give the default GITHUB_TOKEN write permission to commit and push the + # added or changed files to the repository. + contents: write + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20.x + cache: 'yarn' + - run: yarn install --frozen-lockfile + - run: yarn lint --fix + + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: 'Applied automatic fixes' \ No newline at end of file