From e6c5f44a660a95ea2612baba85b3847b5539d4d7 Mon Sep 17 00:00:00 2001 From: bkrmendy Date: Fri, 9 Feb 2024 09:17:29 +0100 Subject: [PATCH] Get previous tag --- .github/workflows/releases.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index daf7246..84fc069 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -62,9 +62,17 @@ jobs: with: name: timeline-macos-x86_64 path: timeline-macos-x86_64.zip + - name: Get previous tag + id: previous_tag + uses: "WyriHaximus/github-action-get-previous-tag@v1" + with: + fallback: 0.0.0 - name: Release uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: + tag_name: ${{steps.previous_tag.outputs.tag}} files: | timeline-macos-x86_64.zip timeline-win-x86_64.zip