diff --git a/.github/actions/generate-docs/action.yml b/.github/actions/generate-docs/action.yml index c95617567..843ff674c 100644 --- a/.github/actions/generate-docs/action.yml +++ b/.github/actions/generate-docs/action.yml @@ -53,8 +53,7 @@ runs: cd website-repo git config user.name "coredb-service-user" git config user.email "admin@github.com" - git fetch origin ${{ inputs.website_branch }} - git checkout ${{ inputs.website_branch }} || git checkout -b ${{ inputs.website_branch }} + git fetch origin ${{ inputs.website_branch }} && git checkout ${{ inputs.website_branch }} || git checkout -b ${{ inputs.website_branch }} cd .. cp tembo-repo/command-reference.md website-repo/src/content/docs/development/cli/ cd website-repo