ci: Fix snapcraft promote rc job

This commit is contained in:
krille-chan 2023-09-15 17:41:02 +02:00
parent 56472d63a3
commit cad33f0248
No known key found for this signature in database

View file

@ -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]:\"