Skip to content

Java: Add release notes for release 5.29.0 #187

Java: Add release notes for release 5.29.0

Java: Add release notes for release 5.29.0 #187

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@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
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