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: |