From cad33f02486666a124e1fcbe58bf8af4819de2f3 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Fri, 15 Sep 2023 17:41:02 +0200 Subject: [PATCH] ci: Fix snapcraft promote rc job --- .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 8bd39ff8..96bf617c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -160,8 +160,7 @@ jobs: run: sudo apt-get update && sudo apt-get install -y expect - name: Promote Snap run: | - RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}') - if [ "$RELEASE_TYPE" = "rc" ]; then + if [[ $GITHUB_REF_NAME == rc* ]]; then expect -c " spawn snapcraft promote fluffychat --from-channel edge --to-channel candidate expect \"Do you want to promote the current set to the 'candidate' channel? [y/N]:\"