From 97ce354eaed9fdc5ef1e1ecde1e4da17b28cb541 Mon Sep 17 00:00:00 2001 From: David Hayes Date: Wed, 7 Aug 2024 21:25:01 -0600 Subject: [PATCH] Update releases.yml --- .github/workflows/releases.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 0176fb26d..e9c14d09b 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -11,7 +11,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Get release version - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV + id: vars + run: | + if [[ $GITHUB_REF == refs/tags/* ]]; then + echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV + else + echo "RELEASE_VERSION=latest" >> $GITHUB_ENV + fi - name: Checkout uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4