ci: Fix snapcrafttoken handling in ci

This commit is contained in:
krille-chan 2023-07-25 06:23:15 +02:00
parent b9eee23e58
commit 2f46181398
No known key found for this signature in database

View file

@ -82,7 +82,7 @@ jobs:
env:
SNAPCRAFT_TOKEN: ${{ secrets.SNAPCRAFT_TOKEN }}
run: |
echo "${{ env.SNAPCRAFT_TOKEN }}" >> snapcrafttoken.txt
echo $SNAPCRAFT_TOKEN >> snapcrafttoken.txt
snapcraft login --with snapcrafttoken.txt
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
if [ "$RELEASE_TYPE" = "rc" ]; then