Skip to content

Commit d7204ad

Browse files
committed
ci: ensure promote command works on openvino branch
1 parent 0b2d2bb commit d7204ad

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/promote-to-stable.yml

+18
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,21 @@ jobs:
4343
channel: preview/stable
4444
github-token: ${{ secrets.GITHUB_TOKEN }}
4545
store-token: ${{ secrets.SNAP_STORE_STABLE }}
46+
47+
promote-openvino:
48+
name: ⬆️ Promote to 2.99-openvino/stable
49+
environment: "2.99 OpenVino Candidate Branch"
50+
runs-on: ubuntu-latest
51+
if: |
52+
( !github.event.issue.pull_request )
53+
&& contains(github.event.comment.body, '/promote ')
54+
&& contains(github.event.comment.body, '2.99-openvino/stable')
55+
&& contains(github.event.issue.body, '2.99-openvino/stable')
56+
&& contains(github.event.*.labels.*.name, 'testing')
57+
steps:
58+
- name: ⬆️ Promote to 2.99-openvino/stable
59+
uses: snapcrafters/ci/promote-to-stable@main
60+
with:
61+
channel: 2.99-openvino/stable
62+
github-token: ${{ secrets.GITHUB_TOKEN }}
63+
store-token: ${{ secrets.SNAP_STORE_STABLE }}

0 commit comments

Comments
 (0)