ci: Fix snap promote to correct channel

This commit is contained in:
krille-chan 2023-12-31 10:21:52 +01:00
parent 4d7d5bf181
commit ce1159692f
No known key found for this signature in database

View file

@ -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