From cd9b1b7b72bbfe986589354f6a7dfb44abb27331 Mon Sep 17 00:00:00 2001 From: Alan Agius <17563226+alan-agius4@users.noreply.github.com> Date: Fri, 16 May 2025 06:13:09 +0000 Subject: [PATCH] ci: ensure uncommitted changes are cleaned up before creating a branch (#61387) This ensures that all uncommitted changes are cleaned up before creating a new branch. PR Close #61387 --- .github/workflows/update-cdk-apis-and-cli-help.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: