Skip to content

Dev channel support

Dev channel support #7

name: Promote
on:
issue_comment:
types:
- created
permissions:
issues: write
jobs:
promote-latest:
name: ⬆️ Promote to latest/stable
environment: "Candidate Branch"
runs-on: ubuntu-latest
if: |
( !github.event.issue.pull_request )
&& contains(github.event.comment.body, '/promote ')
&& contains(github.event.comment.body, 'latest/stable')
&& contains(github.event.issue.body, 'latest/stable')
&& contains(github.event.*.labels.*.name, 'testing')
steps:
- name: ⬆️ Promote to latest/stable
uses: snapcrafters/ci/promote-to-stable@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
store-token: ${{ secrets.SNAP_STORE_STABLE }}
promote-dev:
name: ⬆️ Promote to dev/stable
environment: "Dev Branch"
runs-on: ubuntu-latest
if: |
( !github.event.issue.pull_request )
&& contains(github.event.comment.body, '/promote ')
&& contains(github.event.comment.body, 'dev/stable')
&& contains(github.event.issue.body, 'dev/stable')
&& contains(github.event.*.labels.*.name, 'testing')
steps:
- name: ⬆️ Promote to dev/stable
uses: snapcrafters/ci/promote-to-stable@main
with:
channel: dev/stable
github-token: ${{ secrets.GITHUB_TOKEN }}
store-token: ${{ secrets.SNAP_STORE_STABLE }}