From f6d673773adbe13363b3976ac873e4cdfbcb7417 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 6 Sep 2024 11:47:07 +0200 Subject: [PATCH] flags array and adjusting release title --- .github/workflows/publish.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 608a071..f8321fb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -73,13 +73,15 @@ jobs: RELEASE_NAME: ${{ github.ref_name }} run: | # If the release name starts with "pre", draft release - FLAGS="" + FLAGS=() + TITLE="Release $RELEASE_NAME" if [[ "$RELEASE_NAME" == pre* ]]; then - FLAGS="--prerelease --draft" + FLAGS+=(--prerelease --draft) + TITLE="Prerelease $RELEASE_NAME" fi # Create the release with the appropriate flags gh release create "$RELEASE_NAME" \ - --title "Release $RELEASE_NAME" \ - $FLAGS \ + --title "$TITLE" \ + "${FLAGS[@]}" \ ProxySwitcher.zip