From f3b71e93a8fb023f3efedac66e069547e6528d52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Fri, 18 Oct 2024 14:51:32 +0800 Subject: [PATCH] Update Gmeek.yml --- .github/workflows/Gmeek.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Gmeek.yml b/.github/workflows/Gmeek.yml index 3644427..d70a0ff 100644 --- a/.github/workflows/Gmeek.yml +++ b/.github/workflows/Gmeek.yml @@ -38,8 +38,8 @@ jobs: GMEEK_VERSION=$(jq -r ".GMEEK_VERSION" config.json) git clone https://github.com/Meekdai/Gmeek.git /opt/Gmeek; cd /opt/Gmeek/ - lastTag=$(git describe --tags `git rev-list --tags --max-count=1`) - if [ $GMEEK_VERSION == 'last' ]; then git checkout $lastTag; else git checkout $GMEEK_VERSION; fi; + lastTag=$(git tag --sort=-creatordate | head -n 1) + if [ "$GMEEK_VERSION" == 'last' ]; then git checkout "$lastTag"; else git checkout "$GMEEK_VERSION"; fi; - name: Install dependencies run: |