From 724dd7e7335119f857fd603a5174a59f625f911b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 20 Feb 2024 20:31:08 -0800 Subject: [PATCH] Clean branch name to remove slashes --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 47dff9073..9c6e9c0da 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ concurrency: env: FRAMEWORK: net6.0 - BRANCH: ${{ github.head_ref || github.ref_name }} + RAW_BRANCH_NAME: ${{ github.head_ref || github.ref_name }} SONARR_MAJOR_VERSION: 4 VERSION: 4.0.1 @@ -48,6 +48,8 @@ jobs: echo "SDK_PATH=${{ env.DOTNET_ROOT }}/sdk/${DOTNET_VERSION}" >> "$GITHUB_ENV" echo "SONARR_VERSION=$SONARR_VERSION" >> "$GITHUB_ENV" + echo "BRANCH=${RAW_BRANCH_NAME/\//-}" >> "$GITHUB_ENV" + echo "framework=${{ env.FRAMEWORK }}" >> "$GITHUB_OUTPUT" echo "major_version=${{ env.SONARR_MAJOR_VERSION }}" >> "$GITHUB_OUTPUT" echo "version=$SONARR_VERSION" >> "$GITHUB_OUTPUT"