Skip to content

Commit 5dcb2af

Browse files
committed
feat: enable github action to update changelog
1 parent fb08dc0 commit 5dcb2af

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Update Changelog
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: New changelog version
8+
type: string
9+
required: true
10+
default: ""
11+
distro:
12+
description: Changelog distro
13+
type: string
14+
required: true
15+
default: ""
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
update:
23+
runs-on: ubuntu-24.04
24+
container: "ghcr.io/regolith-linux/ci-ubuntu:noble-amd64"
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: Update Changelog
30+
run: gbp dch --force-distribution --distribution "${{ inputs.distro }}" -N "${{ inputs.version }}" --debian-branch="${{ github.ref_name }}"
31+
32+
- name: Push Changes
33+
uses: stefanzweifel/git-auto-commit-action@v5
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.ORG_BROADCAST_TOKEN2 }}
36+
with:
37+
file_pattern: "debian/changelog"
38+
commit_message: "chore: bump changelog version to ${{ inputs.version }}"
39+
commit_user_name: regolith-ci-bot
40+
commit_user_email: bot@regolith-desktop.com
41+
commit_author: "regolith-ci-bot <bot@regolith-desktop.com>"

0 commit comments

Comments
 (0)