Update stale.yml #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: | |
- master | |
pull_request_target: | |
branches: | |
- master | |
# Down scope as necessary via https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token | |
permissions: | |
checks: write | |
contents: write | |
jobs: | |
run-linters: | |
name: Run linters | |
runs-on: self-hosted | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 19 | |
# ESLint and Prettier must be in `package.json` | |
- name: Install Node.js dependencies | |
run: npm i | |
- name: Run linters | |
uses: wearerequired/lint-action@v2.3.0 | |
with: | |
auto_fix: true | |
commit_message: "style: Fix code style issues with ${linter}" | |
eslint: true |