Skip to content

Commit 0190cd2

Browse files
Use _promote_charm.yaml (#391)
Use `charmcraft promote` and auto-generate release notes
1 parent a65af88 commit 0190cd2

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed

.github/release.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
changelog:
2+
categories:
3+
- title: Features
4+
labels:
5+
- enhancement
6+
- title: Bug fixes
7+
labels:
8+
- bug

.github/workflows/check_pr.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2025 Canonical Ltd.
2+
# See LICENSE file for licensing details.
3+
name: Check pull request
4+
5+
on:
6+
pull_request:
7+
types:
8+
- opened
9+
- labeled
10+
- unlabeled
11+
- edited
12+
branches:
13+
- main
14+
15+
jobs:
16+
check-pr:
17+
name: Check pull request
18+
uses: canonical/data-platform-workflows/.github/workflows/[email protected]

.github/workflows/promote.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Copyright 2025 Canonical Ltd.
2+
# See LICENSE file for licensing details.
3+
name: Promote charm
4+
5+
on:
6+
workflow_dispatch:
7+
inputs:
8+
from-risk:
9+
description: Promote from this Charmhub risk
10+
required: true
11+
type: choice
12+
options:
13+
- edge
14+
- beta
15+
- candidate
16+
to-risk:
17+
description: Promote to this Charmhub risk
18+
required: true
19+
type: choice
20+
options:
21+
- beta
22+
- candidate
23+
- stable
24+
25+
jobs:
26+
promote:
27+
name: Promote charm
28+
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
29+
with:
30+
track: '8.0'
31+
from-risk: ${{ inputs.from-risk }}
32+
to-risk: ${{ inputs.to-risk }}
33+
secrets:
34+
charmhub-token: ${{ secrets.CHARMHUB_TOKEN }}
35+
permissions:
36+
contents: write # Needed to update git tags

0 commit comments

Comments
 (0)