Skip to content

Commit 23ea994

Browse files
committed
look up permissions for CLI repo, for comparison
1 parent 81b1445 commit 23ea994

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,14 @@ jobs:
9494
9595
# check token permissions on documentation repo
9696
curl -s -H "Authorization: token ${{ steps.generate_token.outputs.token }}" \
97-
https://api.github.com/user | jq .
97+
https://api.github.com/repos/temporalio/documentation | jq .
9898
curl -H "Authorization: token ${{ steps.generate_token.outputs.token }}" \
9999
https://api.github.com/repos/temporalio/documentation | jq '.permissions'
100-
git ls-remote https://x-access-token:${{ steps.generate_token.outputs.token }}@github.com/temporalio/documentation.git
100+
101+
curl -s -H "Authorization: token ${{ steps.generate_token.outputs.token }}" \
102+
https://api.github.com/repos/temporalio/cli | jq .
103+
curl -H "Authorization: token ${{ steps.generate_token.outputs.token }}" \
104+
https://api.github.com/repos/temporalio/cli | jq '.permissions'
101105
102106
git checkout -b $BRANCH_NAME
103107
cp ../cli/temporalcli/docs/*.mdx docs/cli/

0 commit comments

Comments
 (0)