Skip to content

chore: Split into multi-module structure #36

chore: Split into multi-module structure

chore: Split into multi-module structure #36

Workflow file for this run

name: auto fix lint
on:
pull_request:
branches:
- main
permissions:
checks: write
contents: write
jobs:
fix-lint:
if: github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GH_CLOUD_SDK_JS_ADMIN_WRITE_TOKEN }}
- uses: pnpm/action-setup@v3
with:
version: ${{ vars.PNPM_VERSION }}
- uses: actions/setup-node@v4
with:
node-version: ${{ vars.DEFAULT_NODE_VERSION }}
cache: 'pnpm'
- run: pnpm i --frozen-lockfile
- run: pnpm lint:fix
- name: Commit Changes if needed
run: |
diff=`git diff`
if [ ! -z "$diff" ]; then
git config --global user.email "[email protected]"
git config --global user.name "cloud-sdk-js"
git commit -m "fix: Changes from lint" -a
git push
fi