Skip to content

chore(deps): update dependency eslint to v10 #436

chore(deps): update dependency eslint to v10

chore(deps): update dependency eslint to v10 #436

Workflow file for this run

name: auto fix lint
on:
pull_request:
branches:
- main
jobs:
fix-lint:
if: github.event.pull_request.user.type != '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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ steps.app-token.outputs.token }}
- name: Setup Node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
- 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