File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : " Tag Release"
3+
4+ on :
5+ pull_request :
6+ types : [closed]
7+
8+ jobs :
9+ create-tag :
10+ if : github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v3
16+
17+ - name : Create Tag
18+ uses : negz/create-tag@v1
Original file line number Diff line number Diff line change 1+ ---
2+ name : ' Create Release'
3+
4+ on :
5+ workflow_run :
6+ workflows : ["Tag Release"]
7+ types :
8+ - completed
9+
10+ jobs :
11+ release :
12+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v3
17+ with :
18+ submodules : true
19+
20+ - name : Build Changelog
21+ id : github_release
22+ uses : mikepenz/release-changelog-builder-action@v3
23+ env :
24+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25+ with :
26+ configurationJson : |
27+ {
28+ "pr_template": "- #{{TITLE}} (##{{NUMBER}})",
29+ "categories": [
30+ {
31+ "title": "## Features",
32+ "labels": ["feature", "feat"]
33+ },
34+ {
35+ "title": "## Fixes",
36+ "labels": ["fix"]
37+ }
38+ ]
39+ }
40+ - name : Create Release
41+ 42+ with :
43+ body : |
44+ ${{steps.github_release.outputs.changelog}}
45+
46+
47+
You can’t perform that action at this time.
0 commit comments