From f093472630d7fcc9321a442f5d5b6393b8d403ef Mon Sep 17 00:00:00 2001 From: Bara Date: Sat, 1 Jan 2022 03:08:43 +0100 Subject: [PATCH] Beta releases (#363) * Add pre-release support with "...-beta" tags * Add "pre" as keyword for prereleases * Use ref_name instead of ref ref: The branch or tag ref that triggered the workflow run. For branches this is the format refs/heads/, and for tags it is refs/tags/. ref_name: The branch or tag name that triggered the workflow run. --- .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 fb33da64..43b4c0a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: - name: Replace version with tag name run: | - sed -i "s/1.0.dev/${{ github.ref }}/g" $SCRIPTING_PATH/SurfTimer.sp + sed -i "s/1.0.dev/${{ github.ref_name }}/g" $SCRIPTING_PATH/SurfTimer.sp - name: Compile surftimer.sp run: |