diff --git a/git/checkout/action.yaml b/git/checkout/action.yaml index 418f490..827ffdd 100644 --- a/git/checkout/action.yaml +++ b/git/checkout/action.yaml @@ -3,12 +3,11 @@ desciption: Checkout repository using alpite/git runs: using: composite - container: alpine/git steps: - name: Checkout repository run: | mkdir -p /tmp/workspace && mv * /tmp/workspace/ HOST=$(echo "${{ github.server_url }}" | sed 's%https://%%') git clone -b "${{ github.ref_name }}" "https://${{ github.token }}@$HOST/${{ github.repository }}.git" . - mv /tmp/workspace/* . && rm -rf /tmp/workspace + mv -n /tmp/workspace/* . && rm -rf /tmp/workspace git status && echo "" && ls