File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8080
8181 cd docs
8282
83+ git remote -v
84+
8385 # Setup the committers identity.
8486 #git config --global user.email "sdk@temporal.io"
8587 #git config --global user.name "Temporal CLI"
@@ -90,11 +92,17 @@ jobs:
9092 git config user.email "${{ steps.get_user.outputs.git_email }}"
9193 git remote set-url origin https://x-access-token:${{ steps.generate_token.outputs.token }}@github.com/temporalio/documentation.git
9294
95+ # check token permissions on documentation repo
96+ curl -H "Authorization: token ${{ steps.generate_token.outputs.token }}" \
97+ https://api.github.com/repos/temporalio/documentation | jq '.permissions'
98+ git ls-remote https://x-access-token:${{ steps.generate_token.outputs.token }}@github.com/temporalio/documentation.git
99+
93100 git checkout -b $BRANCH_NAME
94101 cp ../cli/temporalcli/docs/*.mdx docs/cli/
95102 git add .
96103 # TODO: mention CLI release version
97104 git commit -m "CLI docs update, autogenerated on CLI release $LATEST_TAG, ${{ github.ref_name }}"
105+ git remote -v
98106 git push origin "$BRANCH_NAME"
99107
100108 gh pr create \
You can’t perform that action at this time.
0 commit comments