mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2026-01-20 14:04:21 +01:00
ci: add setup-git action for configuring Git in workflows
This commit is contained in:
12
.github/workflows/vrt.yml
vendored
12
.github/workflows/vrt.yml
vendored
@@ -35,14 +35,10 @@ jobs:
|
||||
pnpm exec playwright install
|
||||
|
||||
- name: Set up Git
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
git config --local user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
|
||||
git config --local user.name "$(git --no-pager log --format=format:'%an' -n 1)"
|
||||
git config --local url."https://oauth2:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
|
||||
|
||||
git pull --rebase origin ${{ github.head_ref }}
|
||||
uses: ./.github/actions/setup-git
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
origin: ${{ github.head_ref }}
|
||||
|
||||
- name: Build project
|
||||
run: pnpm build
|
||||
|
||||
Reference in New Issue
Block a user