From 9f511fb9856074ae2f56f6a67f42ec9f03ea673f Mon Sep 17 00:00:00 2001 From: helgeerbe Date: Tue, 23 May 2023 11:43:26 +0200 Subject: [PATCH] fix(action): sort tags in chronological order --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f6fde442..128a59036 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -124,7 +124,7 @@ jobs: - name: Get openDTU core release run: | - echo "OPEN_DTU_CORE_RELEASE=$(git show-ref | grep 'refs/tags/v' | tail -1 | sed 's#.*/##')" >> $GITHUB_ENV + echo "OPEN_DTU_CORE_RELEASE=$(git for-each-ref --sort=creatordate --format '%(refname) %(creatordate)' refs/tags | grep 'refs/tags/v' | tail -1 | sed 's#.*/##' | sed 's/ .*//')" >> $GITHUB_ENV - name: Create openDTU-core-release-Badge uses: schneegans/dynamic-badges-action@v1.6.0