@@ -59,29 +59,33 @@ jobs:
5959 go-version : ' 1.22'
6060
6161 - name : Generate CLI docs
62- working-directory : cli/temporalcli/ internal/cmd/gen-docs
62+ working-directory : cli/internal/cmd/gen-docs
6363 run : |
6464 go run .
6565
6666 - name : Publish generated docs to documentation repo
6767 env :
6868 GH_TOKEN : ${{ github.token }}
69+ COMMIT_AUTHOR : ${{ github.event.inputs.commit_author }}
70+ COMMIT_AUTHOR_EMAIL : ${{ github.event.inputs.commit_author_email }}
71+ CLI_RELEASE_TAG : ${{ github.event.inputs.cli_release_tag }}
72+ COMMIT_MESSAGE : ${{ github.event.inputs.commit_message }}
6973 working-directory : docs
7074 run : |
7175 set -ex
7276
73- git config user.name "${{ github.event.inputs.commit_author }} "
74- git config user.email "${{ github.event.inputs.commit_author_email }} "
75-
76- branch_name="update-cli-docs-${{ github.event.inputs.cli_release_tag }} "
77- git checkout -b $branch_name
78- cp ../cli/temporalcli /docs/*.mdx docs/cli/
77+ git config user.name "$COMMIT_AUTHOR "
78+ git config user.email "$COMMIT_AUTHOR_EMAIL "
79+
80+ branch_name="update-cli-docs-$CLI_RELEASE_TAG "
81+ git checkout -b " $branch_name"
82+ cp ../cli/dist /docs/*.mdx docs/cli/
7983 git add .
80- git commit -m "${{ github.event.inputs.commit_message }} "
84+ git commit -m "$COMMIT_MESSAGE "
8185 git push origin "$branch_name"
8286
8387 gh pr create \
8488 --body "Autogenerated PR from https://github.com/temporalio/cli" \
85- --title "${{ github.event.inputs.commit_message }} " \
89+ --title "$COMMIT_MESSAGE " \
8690 --head "$branch_name" \
8791 --base "main"
0 commit comments