mirror of
https://github.com/s4u/maven-settings-action.git
synced 2026-02-12 00:05:49 +08:00
File sync from s4u/.github
This commit is contained in:
14
.github/workflows/release-drafter.yml
vendored
14
.github/workflows/release-drafter.yml
vendored
@ -4,8 +4,6 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
update_release_draft:
|
||||
@ -13,19 +11,9 @@ jobs:
|
||||
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 }}
|
||||
|
||||
Reference in New Issue
Block a user