NTP-1234 | GHA | Update Commiter (#14675)

This commit is contained in:
Shivam Goyal
2025-01-27 13:23:05 +05:30
committed by GitHub
parent a2ef45d1af
commit d0cbdcb972
2 changed files with 7 additions and 10 deletions

View File

@@ -40,10 +40,10 @@ jobs:
uses: actions/checkout@v4
with:
token: ${{ steps.get-token.outputs.token }}
- name: Setup Git Credentials for android-bot@navi.com
- name: Setup Git Credentials for navi-android[bot]
run: |
git config --global user.email "android-bot@navi.com"
git config --global user.name "Android Bot"
git config --global user.name "navi-android[bot]"
git config --global user.email "194247829+navi-android[bot]@users.noreply.github.com"
- name: Checkout release-${{ inputs.version_name }} from ${{ github.ref_name }}
run: git checkout -b release-${{ inputs.version_name }}
- name: Update Version Name (${{ inputs.version_name }}) & Version Code (${{ inputs.version_code }})

View File

@@ -57,14 +57,11 @@ jobs:
run: chmod +x gradlew
- name: Run Spotless Action - ${{ inputs.action }}
run: ./gradlew spotless${{ inputs.action }}
- name: Setup Git Credentials for android-bot@navi.com
- name: Setup Git Credentials for navi-android[bot]
if: inputs.action == 'apply'
run: |
git config --global user.email "android-bot@navi.com"
git config --global user.name "Android Bot"
git config --global user.name "navi-android[bot]"
git config --global user.email "194247829+navi-android[bot]@users.noreply.github.com"
- name: Commit & Push Spotless Changes
if: inputs.action == 'apply'
run: |
git add .
git commit -m "NTP-7559 | Apply Spotless Changes"
git push
run: git commit -am "NTP-7559 | Apply Spotless Changes" && git push