Skip to content

Commit

Permalink
File sync from s4u/.github
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Action committed Dec 29, 2020
1 parent 0082b46 commit 37a143a
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,16 @@ on:
push:
branches:
- '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]'))
&& !startsWith(github.event.head_commit.message , '[maven-release-plugin]')
steps:
- 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/release-drafter@v5.13.0
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 }}

0 comments on commit 37a143a

Please sign in to comment.