Skip to content

Commit 72edc70

Browse files
authored
Revert git user setup by app token for setting user.name/email (#2865)
1 parent 931a749 commit 72edc70

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

.github/workflows/push-deploy-docs.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,9 @@ jobs:
1616
RELEASE_VERSION: ${{ github.event.inputs.version }}
1717

1818
steps:
19-
- name: Create GitHub App Token
20-
id: app-token
21-
uses: actions/create-github-app-token@v1
22-
with:
23-
app-id: ${{ vars.CI_APP_ID }}
24-
private-key: ${{ secrets.CI_APP_PRIVATE_KEY }}
25-
26-
- name: Checkout
19+
- name: Git checkout
2720
uses: actions/checkout@v4
2821
with:
29-
ref: ${{ github.ref }}
30-
token: ${{ steps.app-token.outputs.token }}
3122
fetch-depth: 0
3223

3324
- name: Java setup
@@ -37,17 +28,6 @@ jobs:
3728
distribution: 'temurin'
3829
cache: maven
3930

40-
- name: Get GitHub App User ID
41-
id: get-user-id
42-
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
43-
env:
44-
GH_TOKEN: ${{ steps.app-token.outputs.token }}
45-
46-
- name: Configure Git author
47-
run: |
48-
git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
49-
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>'
50-
5131
- name: Install just
5232
uses: taiki-e/install-action@just
5333

@@ -64,5 +44,11 @@ jobs:
6444
- name: Set Release Version
6545
run: |
6646
echo "RELEASE_VERSION=${RELEASE_VERSION:-"$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)"}" >> $GITHUB_ENV
47+
48+
- name: Git user setup
49+
run: |
50+
git config --global user.name "SmallRye CI"
51+
git config --global user.email "[email protected]"
52+
6753
- name: Perform the deploy docs
6854
run: just build-ci deploy-docs ${{ env.RELEASE_VERSION }}

0 commit comments

Comments
 (0)