mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 09:05:04 +08:00
commit
84756f3092
8
.github/workflows/upload_docs.yml
vendored
8
.github/workflows/upload_docs.yml
vendored
@ -24,10 +24,12 @@ jobs:
|
|||||||
|
|
||||||
- env:
|
- env:
|
||||||
REF: ${{ github.event.workflow_run.head_branch }}
|
REF: ${{ github.event.workflow_run.head_branch }}
|
||||||
|
PR_REPO: ${{ github.event.workflow_run.head_repository.full_name }}
|
||||||
|
PR_USER: ${{ github.event.workflow_run.head_repository.owner.login }}
|
||||||
run: |
|
run: |
|
||||||
git config user.name GitHub
|
git config user.name $PR_USER
|
||||||
git config user.email noreply@github.com
|
git config user.email $PR_USER@users.noreply.github.com
|
||||||
git add .
|
git add .
|
||||||
git diff-index --quiet HEAD || git commit -m ":memo: update api docs"
|
git diff-index --quiet HEAD || git commit -m ":memo: update api docs"
|
||||||
git remote add target "https://github.com/${{ github.event.workflow_run.head_repository.full_name }}.git"
|
git remote add target https://github.com/$PR_REPO.git
|
||||||
git push target HEAD:$REF
|
git push target HEAD:$REF
|
||||||
|
Loading…
Reference in New Issue
Block a user