From f1f37c1cad0f5f1bd22b89f6d7878744b7711bd6 Mon Sep 17 00:00:00 2001 From: Andrew Zhu Date: Wed, 24 Aug 2022 11:21:35 -0400 Subject: [PATCH] build: get 2nd-from-last tag --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b06b7a..8f977a6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,7 +90,7 @@ jobs: - name: Find Previous Release id: findtag run: | - echo ::set-output name=previous_release::$(git tag --sort "-committerdate" | head -n 1) + echo ::set-output name=previous_release::$(git tag --sort "-committerdate" | sed -n 2p) - name: Download artifact uses: actions/download-artifact@v2