Skip to content

chore(deps-dev): Bump eslint from 9.39.2 to 10.6.0 #340

chore(deps-dev): Bump eslint from 9.39.2 to 10.6.0

chore(deps-dev): Bump eslint from 9.39.2 to 10.6.0 #340

Workflow file for this run

name: auto fix lint
on:
pull_request:
branches:
- main
jobs:
fix-lint:
if: github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ secrets.SAP_CLOUD_SDK_BOT_CLIENT_ID }}
private-key: ${{ secrets.SAP_CLOUD_SDK_BOT_PRIVATE_KEY }}
owner: SAP
repositories: cloud-sdk
permission-contents: write
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ steps.app-token.outputs.token }}
- name: Setup Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 20
- name: Install dependencies
run: npm ci
- run: npm run lint:fix
- name: Commit changes if needed
env:
BOT_EMAIL: ${{ vars.SAP_CLOUD_SDK_BOT_EMAIL }}
BOT_NAME: ${{ vars.SAP_CLOUD_SDK_BOT_NAME }}
run: |
diff=`git diff`
if [ ! -z "$diff" ]; then
git config --global user.email "$BOT_EMAIL"
git config --global user.name "$BOT_NAME"
git commit -m "fix: Changes from lint" -a
git push
fi