29 lines
732 B
YAML
29 lines
732 B
YAML
name: Fix Lint Command
|
|
on:
|
|
issue_comment:
|
|
types: [created]
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
if: >-
|
|
github.event.issue.pull_request != '' &&
|
|
(
|
|
contains(github.event.comment.body, '/fix')
|
|
)
|
|
permissions:
|
|
pull-requests: write
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
ref: refs/pull/${{ github.event.issue.number }}/head
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
- run: pnpm install
|
|
- run: pnpm lint --fix
|
|
- name: Push Changes
|
|
uses: ad-m/github-push-action@master
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|