File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848 cd cli/temporalcli/internal/cmd/gen-docs
4949 go run .
5050
51- - name : Publish generated docs to cli repo
52- env :
53- GH_TOKEN : ${{ steps.generate_token.outputs.token }}
54- run : |
55- set -e
56- set -x
57-
58- if [ -z "$GH_TOKEN" ]; then
59- echo "GH_TOKEN is NOT set"
60- exit 1
61- else
62- echo "GH_TOKEN is set"
63- fi
64-
65- curl -H "Authorization: token ${{ steps.generate_token.outputs.token }}" https://api.github.com/user
66-
67- BRANCH_NAME="cli-update-docs-${{ github.ref_name }}"
68- # Remove the "/merge" suffix if it exists
69- BRANCH_NAME=${BRANCH_NAME%/merge}
70-
71- cd cli
72-
73- # Setup the committers identity.
74- git config --global user.email "sdk@temporal.io"
75- git config --global user.name "Temporal CLI"
76-
77- git checkout -b $BRANCH_NAME
78- git add .
79- # TODO: mention CLI release version
80- git commit -m "CLI docs update, autogenerated on CLI release $LATEST_TAG, ${{ github.ref_name }}"
81- git push origin "$BRANCH_NAME"
82-
83- gh pr create \
84- --body "Autogenerated PR from https://github.com/temporalio/cli" \
85- --title "CLI docs update $LATEST_TAG" \
86- --head "$BRANCH_NAME" \
87- --base "main"
88-
8951 - name : Publish generated docs to documentation repo
9052 env :
9153 GH_TOKEN : ${{ steps.generate_token.outputs.token }}
You can’t perform that action at this time.
0 commit comments