diff --git a/.github/workflows/update-cdk-apis-and-cli-help.yml b/.github/workflows/update-cdk-apis-and-cli-help.yml index 686153ba5fa..667bbc0151e 100644 --- a/.github/workflows/update-cdk-apis-and-cli-help.yml +++ b/.github/workflows/update-cdk-apis-and-cli-help.yml @@ -54,7 +54,9 @@ jobs: # Angular CLI - name: Create Branch - run: git checkout -b tmp-cli-docs-update ${{ github.ref }} + run: | + git reset --hard HEAD + git checkout -b tmp-cli-docs-update ${{ github.ref }} - name: Generate CLI help run: node adev/scripts/update-cli-help/index.mjs env: