promote¶
The promote workflow promotes a given snap
from one Snap Store channel to another,
using snapcraft promote.
If the snap input is not provided,
the snap name is inferred from the snapcraft.yaml file
found in snapcraft-source-subdir on the git-ref branch.
The Snapcraft logs of the run are always uploaded
as a workflow artifact named snapcraft_logs_<snap-name>.
Usage¶
jobs:
promote:
permissions:
contents: read
uses: canonical/robotics-actions-workflows/.github/workflows/promote.yaml@main
with:
from-channel: latest/candidate
to-channel: latest/stable
secrets:
snapstore-login: ${{ secrets.SNAPSTORE_LOGIN }}
Inputs¶
Input |
Type |
Default |
Required |
Description |
|---|---|---|---|---|
|
string |
|
no |
The snap to promote. If not provided, the name is inferred from the local |
|
string |
|
no |
The channel from which to promote. |
|
string |
|
no |
The channel to which to promote. |
|
string |
|
no |
The directory of the Snapcraft project. Used to infer the snap name when the |
|
string |
|
no |
The branch to checkout. Used to infer the snap name when the |
Secrets¶
Secret |
Required |
Description |
|---|---|---|
|
yes |
Snap Store credential (see |
Outputs¶
The workflow declares no workflow outputs.
Its outcomes are the promoted snap revision on the Snap Store
and the uploaded snapcraft_logs_<snap-name> artifact.
Permissions¶
contents: read