👷 Only run autofix on pull requests #7
Workflow file for this run
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: Fix | |
on: | |
pull_request: | |
branches: main | |
jobs: | |
fix: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: latest | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
cache: pnpm | |
- run: pnpm install | |
- run: pnpm run lint:fix | |
- run: | | |
git add . | |
git status | |
- uses: qoomon/actions--create-commit@v1 | |
id: actions--create-commit | |
with: | |
message: | | |
🎨 pnpm run lint:fix | |
[dependabot skip] | |
skip-empty: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- run: git push origin '${{ github.head_ref }}' |