-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (41 loc) · 1.2 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Release
on:
push:
branches:
- release/v*
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
pull-request-on-release:
name: Create Release PR
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Derive from branch name
run: |
VERSION=${GITHUB_REF##*/}
echo "PULL_REQUEST_TITLE=chore(release): ${VERSION}" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: Create changelog
id: create_changelog
uses: mikepenz/[email protected]
with:
toTag: ${{ github.ref }}
configuration: .github/changelog.json
ignorePreReleases: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: pull-request-action
uses: vsoch/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_BRANCH: "main"
PULL_REQUEST_UPDATE: true
BRANCH_PREFIX: release/v
PULL_REQUEST_BODY: |
Changelog
${{steps.create_changelog.outputs.changelog}}