27
.github/workflows/clone/action.yml
vendored
Normal file
27
.github/workflows/clone/action.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
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
|
||||
Reference in New Issue
Block a user