From ce1159692ff89c2d3bc0febd20e200d283a7bcc1 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Sun, 31 Dec 2023 10:21:52 +0100 Subject: [PATCH] ci: Fix snap promote to correct channel --- .github/workflows/release.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7dc4bcbb..2724002b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -182,8 +182,7 @@ jobs: env: # Workaround for https://github.com/snapcore/snapcraft/issues/4439 SNAPCRAFT_HAS_TTY: "true" run: | - RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}') - if [ "$RELEASE_TYPE" = "rc" ]; then + if [[ $GITHUB_REF_NAME == rc* ]]; then yes | snapcraft promote fluffychat --from-channel edge --to-channel candidate else yes | snapcraft promote fluffychat --from-channel edge --to-channel stable