Skip to content

chore(deps-dev): bump eslint-plugin-n from 17.10.2 to 17.10.3 (#16793) #6893

chore(deps-dev): bump eslint-plugin-n from 17.10.2 to 17.10.3 (#16793)

chore(deps-dev): bump eslint-plugin-n from 17.10.2 to 17.10.3 (#16793) #6893

Workflow file for this run

name: Format
on:
push:
branches:
- master
jobs:
format:
permissions:
contents: write # for Git to git push
name: Auto format
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'pnpm'
- run: pnpm i
- run: npm run format
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git status
git diff-index --quiet HEAD || (git commit -m "style: auto format" -a --no-verify && git push "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" HEAD:master)