Files
EdenReleases/.github/workflows/clone/action.yml
crueter a20959fab7 initial
Signed-off-by: crueter <swurl@swurl.xyz>
2025-07-05 15:00:30 -04:00

28 lines
619 B
YAML

name: Clone
runs:
using: "composite"
steps:
- name: Parse Forgejo payload
uses: ./.github/workflows/parse
- name: Print env vars
shell: bash
run: |
echo "Tag: $FORGEJO_TAG"
- name: Checkout Repo
shell: bash
run: |
while ! git clone https://crueter:${{ env.FORGEJO_TOKEN }}@git.eden-emu.dev/eden-emu/eden.git eden; do
echo "Clone failed!"
sleep 5
echo "Trying clone again..."
rm -rf ./eden || true
done
cd eden
git reset --hard $FORGEJO_TAG
git submodule update --init --recursive