From c589fc92363688698404b6ed223251f17e5697d2 Mon Sep 17 00:00:00 2001 From: RustyTake-Off <109174317+RustyTake-Off@users.noreply.github.com> Date: Sat, 29 Jun 2024 05:24:54 +0200 Subject: [PATCH] Update --- .github/actions/templates/moveFiles/action.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/actions/templates/moveFiles/action.yaml b/.github/actions/templates/moveFiles/action.yaml index 4fd2db5..d65f9dd 100644 --- a/.github/actions/templates/moveFiles/action.yaml +++ b/.github/actions/templates/moveFiles/action.yaml @@ -13,8 +13,10 @@ runs: id: move-files-to-branch shell: bash run: | - git branch --all + # Switch branch + git checkout -b ${{ inputs.branchName }} --track origin/${{ inputs.branchName }} + + # Remove all files ls -al - git checkout -b ${{ inputs.branchName }} - git branch --all + rm -rf . ls -al