Skip to content

Commit 851579d

Browse files
committed
Fix workflow git config
1 parent 6c41386 commit 851579d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/update.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,11 @@ jobs:
4747
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
4848
env:
4949
GH_TOKEN: ${{ steps.app-token.outputs.token }}
50-
- name: Git config
51-
run: |
52-
git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
53-
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com'
5450
- name: Commit updated data
5551
run: |
5652
pushd ${{ env.REPO_DIR }}
53+
git config user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
54+
git config user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com'
5755
git stash
5856
git pull --ff-only
5957
git stash pop

0 commit comments

Comments
 (0)