-
Notifications
You must be signed in to change notification settings - Fork 13
45 lines (41 loc) · 1.37 KB
/
promote-to-stable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 }}