Skip to content

Commit e274bf3

Browse files
authored
chore: Fix app-bot committer email (#6474)
1 parent 2091d97 commit e274bf3

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/auto-dependabot-fix.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ jobs:
2929
- name: Install Dependencies & Compile
3030
run: yarn install --frozen-lockfile --ignore-engines
3131
- name: Commit Changes if needed
32+
env:
33+
BOT_EMAIL: ${{ vars.SAP_CLOUD_SDK_BOT_EMAIL }}
34+
BOT_NAME: ${{ vars.SAP_CLOUD_SDK_BOT_NAME }}
3235
run: |
3336
diff=`git diff`
3437
if [ ! -z "$diff" ]; then
35-
git config --global user.email "[email protected]"
36-
git config --global user.name "cloud-sdk-js"
38+
git config --global user.email "$BOT_EMAIL"
39+
git config --global user.name "$BOT_NAME"
3740
git commit -m "Regenerate check-public-api action" -a
3841
git push
3942
fi

.github/workflows/auto-lint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ jobs:
3131
- name: Run Lint
3232
run: yarn lint:fix
3333
- name: Commit Changes if needed
34+
env:
35+
BOT_EMAIL: ${{ vars.SAP_CLOUD_SDK_BOT_EMAIL }}
36+
BOT_NAME: ${{ vars.SAP_CLOUD_SDK_BOT_NAME }}
3437
run: |
3538
diff=`git diff`
3639
if [ ! -z "$diff" ]; then
37-
git config --global user.email "[email protected]"
38-
git config --global user.name "cloud-sdk-js"
40+
git config --global user.email "$BOT_EMAIL"
41+
git config --global user.name "$BOT_NAME"
3942
git commit -m "Changes from lint:fix" -a
4043
git push
4144
fi

0 commit comments

Comments
 (0)