File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -110,8 +110,13 @@ jobs:
110110 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
111111 git add .
112112 git commit -m "docs: update API documentation via docsgen-cli"
113+ if [ "${{ github.repository_owner }}" = "${{ github.actor }}" ]; then
114+ REPO_URL="https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}"
115+ else
116+ REPO_URL="https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository_owner }}/${{ github.repository }}"
117+ fi
113118 BRANCH_NAME=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
114- git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.actor }}/lotus.git HEAD:$BRANCH_NAME
119+ git push $REPO_URL HEAD:$BRANCH_NAME
115120
116121 - name : Comment on the pull request
117122 if : steps.check_changes.outputs.changes == 'true'
You can’t perform that action at this time.
0 commit comments