mirror of
https://github.com/s4u/maven-settings-action.git
synced 2026-02-18 00:00:26 +08:00
File sync from s4u/.github
This commit is contained in:
4
.github/release-drafter.yml
vendored
4
.github/release-drafter.yml
vendored
@ -9,12 +9,12 @@ categories:
|
|||||||
- 'bug'
|
- 'bug'
|
||||||
|
|
||||||
- title: 'Maintenance'
|
- title: 'Maintenance'
|
||||||
label:
|
labels:
|
||||||
- 'code quality'
|
- 'code quality'
|
||||||
- 'documentation'
|
- 'documentation'
|
||||||
|
|
||||||
- title: 'Dependency updates'
|
- title: 'Dependency updates'
|
||||||
label:
|
labels:
|
||||||
- 'dependencies'
|
- 'dependencies'
|
||||||
|
|
||||||
change-template: '- $TITLE #$NUMBER'
|
change-template: '- $TITLE #$NUMBER'
|
||||||
|
|||||||
21
.github/workflows/release-drafter.yml
vendored
21
.github/workflows/release-drafter.yml
vendored
@ -2,15 +2,30 @@ name: Release Drafter
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# branches to consider in the event; optional, defaults to all
|
|
||||||
branches:
|
branches:
|
||||||
- master
|
- 'master'
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update_release_draft:
|
update_release_draft:
|
||||||
name: Update Release Draft
|
name: Update Release Draft
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: >
|
||||||
|
github.repository_owner == 's4u'
|
||||||
|
&& (startsWith(github.ref, 'refs/tags/') || !startsWith(github.event.head_commit.message , '[maven-release-plugin]'))
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: release-drafter/release-drafter@v5.12.1
|
- 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:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user