Promote to stable is generally triggered in response to a Snapcrafters reviewer posting a comment
containing a /promote
command. Once the arguments are successfully parsed, the specified
revisions are promoted to the specified channel (latest/stable
) by default.
# ...
jobs:
promote:
name: ⬆️ Promote to stable
runs-on: ubuntu-latest
if: |
( !github.event.issue.pull_request )
&& contains(github.event.comment.body, '/promote ')
&& contains(github.event.*.labels.*.name, 'testing')
steps:
- name: ⬆️ Promote to stable
uses: snapcrafters/ci/promote-to-stable@main
with:
store-token: ${{ secrets.SNAP_STORE_STABLE }}
Key | Description | Required | Default |
---|---|---|---|
channel |
The channel to promote the snap to. | N | latest/stable |
github-token |
A token with permissions to write issues on the repository | Y | |
store-token |
A token with permissions to upload and release to the specified channel in the Snap Store | Y | |
snap-name |
The name of the snap to promote | N | |
snapcraft-channel |
The channel to install Snapcraft from. | N | latest/stable |
snapcraft-project-root |
The root of the snapcraft project, where the snapcraft command would usually be executed from. Do not include the trailing / . |
N |
None