-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Github Action
committed
Dec 28, 2020
1 parent
680c134
commit 6c5b3aa
Showing
2 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,30 @@ name: Release Drafter | |
|
||
on: | ||
push: | ||
# branches to consider in the event; optional, defaults to all | ||
branches: | ||
- master | ||
- 'master' | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
update_release_draft: | ||
name: Update Release Draft | ||
runs-on: ubuntu-latest | ||
if: > | ||
github.repository_owner == 's4u' | ||
&& (startsWith(github.ref, 'refs/tags/') || !startsWith(github.event.head_commit.message , '[maven-release-plugin]')) | ||
steps: | ||
- uses: release-drafter/[email protected] | ||
- id: is-tag | ||
run: | | ||
echo "::set-output name=name::${GITHUB_REF#refs/tags/}" | ||
echo "::set-output name=tag::true" | ||
if: github.repository_owner == 's4u' && startsWith(github.ref, 'refs/tags/') | ||
|
||
- uses: release-drafter/[email protected] | ||
with: | ||
publish: ${{ steps.is-tag.outputs.tag }} | ||
name: ${{ steps.is-tag.outputs.name }} | ||
tag: ${{ steps.is-tag.outputs.name }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |