Update git/checkout/action.yaml

This commit is contained in:
Zakary Timson 2023-11-23 23:05:09 +00:00
parent 4fd25501d1
commit fd27848744

View File

@ -6,7 +6,7 @@ runs:
steps:
- name: Checkout repository
run: |
mkdir -p /tmp/workspace && mv * /tmp/workspace/
mkdir -p /tmp/workspace && mv * /tmp/workspace/ || echo Nothing to copy
HOST=$(echo "${{ github.server_url }}" | sed 's%https://%%')
git clone -b "${{ github.ref_name }}" "https://${{ github.token }}@$HOST/${{ github.repository }}.git" .
mv -n /tmp/workspace/* . && rm -rf /tmp/workspace