Skip to content

Commit 67787c2

Browse files
author
deepin-admin-bot
committed
sync by github workflow Log: none Influence: none
1 parent cee2382 commit 67787c2

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Call update changelog
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "Target version; leave empty to auto bump"
8+
required: false
9+
type: string
10+
name:
11+
description: "Maintainer name used in debian/changelog"
12+
required: true
13+
type: string
14+
email:
15+
description: "Maintainer email used in debian/changelog"
16+
required: true
17+
type: string
18+
base_branch:
19+
description: "Base branch to read and target"
20+
required: false
21+
default: master
22+
type: string
23+
distribution:
24+
description: "Changelog distribution"
25+
required: false
26+
default: unstable
27+
type: string
28+
create_pr:
29+
description: "Create a pull request after generating changelog"
30+
required: false
31+
default: true
32+
type: boolean
33+
34+
jobs:
35+
update_changelog:
36+
uses: linuxdeepin/.github/.github/workflows/update-changelog.yml@master
37+
with:
38+
version: ${{ inputs.version }}
39+
name: ${{ inputs.name }}
40+
email: ${{ inputs.email }}
41+
base_branch: ${{ inputs.base_branch }}
42+
distribution: ${{ inputs.distribution }}
43+
create_pr: ${{ inputs.create_pr }}
44+
secrets: inherit
45+
46+
show_result:
47+
runs-on: ubuntu-latest
48+
needs: update_changelog
49+
steps:
50+
- name: Show update changelog result
51+
run: |
52+
echo "Version: ${{ needs.update_changelog.outputs.version }}"
53+
echo "Pull Request URL: ${{ needs.update_changelog.outputs.pr_url }}"

0 commit comments

Comments
 (0)