diff --git a/.github/workflows/redlib.yml b/.github/workflows/redlib.yml index c90f29b..b5e86f3 100644 --- a/.github/workflows/redlib.yml +++ b/.github/workflows/redlib.yml @@ -17,8 +17,8 @@ jobs: - run: | mkdir redlib cd redlib/ - latest_tag = git describe --tags $(git rev-list --tags --max-count=1) - git clone --depth 1 --branch ($latest_tag) https://github.com/redlib-org/redlib/ + REPO=https://github.com/redlib-org/redlib/ + git clone $REPO --single-branch --branch $(git ls-remote --tags $REPO | cut -d/ -f3 | sort -V | tail -n1) cd redlib/ cargo build --target x86_64-unknown-linux-gnu --release