File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 8888
8989 - name : Clone the source from repoUrl
9090 run : |
91- git clone ${{ github.event.inputs.repoUrl }} ${{ env.repoName }}
91+ git clone --branch ${{ github.event.inputs.branchName }} ${{ github.event.inputs.repoUrl }} ${{ env.repoName }}
9292 cd ${{ env.repoName }}
9393
9494 - name : Run aise-cli
@@ -105,4 +105,3 @@ jobs:
105105 git add .
106106 git commit -m "Generate document for ${{ env.repoName }}"
107107 git push https://code2docs-ai:${{ secrets.MY_PAT }}@github.com/code2docs-ai/${{ env.docs_repo_name }}.git main
108-
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ To use this GitHub Action workflow, follow these steps:
2121 - If the repository exists, delete it before creating a new one.
2222 - Create a new repository in the current organization with the name ` docs_repo_name ` using the GitHub API.
2323 - Check if the local directory already exists and remove it if it exists before cloning the repository.
24- - Clone the source from ` repoUrl ` at the end of the workflow.
24+ - Clone the source from ` repoUrl ` at the end of the workflow, using the ` branchName ` input parameter to specify which branch to clone .
2525 - Clean up the working directory on the runner before running any steps.
2626
2727### Example
You can’t perform that action at this time.
0 commit comments