-
Notifications
You must be signed in to change notification settings - Fork 62
32 lines (26 loc) · 1.02 KB
/
draft-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
name: Draft Release Notes
on: create
jobs:
release_draft:
if: github.ref == 'refs/heads/release/'
name: Create a new release
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Detect new tag version from pom.xml
id: package-version-prod-impl
uses: salsify/action-detect-and-tag-new-version@68bbe8670f415d304e02942186441939c4692aa6 # [email protected]
with:
version-command: |
mvn org.apache.maven.plugins:maven-help-plugin:3.4.0:evaluate -Dexpression=project.version | grep -v '\['
- name: Draft release notes
uses: release-drafter/release-drafter@06d4616a80cd7c09ea3cf12214165ad6c1859e67 #v5.11
with:
config-name: release-draft.yml
version: v${{ steps.package-version.outputs.current-version }}
tag: v${{ steps.package-version.outputs.current-version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}