Skip to content
name: Promote CLI snap
on:
branches:
- testflinger-cli-promote-snap-stable

Check failure on line 4 in .github/workflows/cli-promote-snap.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cli-promote-snap.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
workflow_dispatch:
inputs:
snap:
description: 'Snap name'
default: 'testflinger-cli'
required: true
type: string
from-channel:
description: 'Channel to promote from'
default: 'latest/edge'
required: true
type: string
to-channel:
description: 'Channel to promote to'
default: 'latest/stable'
required: true
type: string
jobs:
promote-snap:
runs-on: ubuntu-latest
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
steps:
- name: Install Snapcraft
run: sudo snap install snapcraft --classic
- name: Promote testflinger-cli edge to stable
run: snapcraft promote testflinger-cli --from-channel latest/edge --to-channel latest/stable --yes