-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a basic workflow for new tags. This will eventually be the trigge…
…r for release builds
- Loading branch information
Showing
1 changed file
with
60 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: New Tag | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
generate-release-notes: | ||
name: Generate Release Notes | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get tag name | ||
id: tag | ||
uses: "WyriHaximus/github-action-get-previous-tag@v1" | ||
- name: Get date | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | ||
- name: Generate | ||
id: generate | ||
uses: mikepenz/release-changelog-builder-action@main | ||
with: | ||
configuration: ".github/workflows/release_notes_config.json" | ||
toTag: "HEAD" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Capture | ||
run: | | ||
echo "${{ steps.generate.outputs.changelog }}" >releasenotes.md | ||
- name: Upload | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ steps.date.outputs.date}}-${{ steps.tag.outputs.tag }}.md | ||
path: releasenotes.md | ||
|
||
create-next-milestone: | ||
name: Create next milestone | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get current version | ||
id: tag | ||
uses: "WyriHaximus/github-action-get-previous-tag@v1" | ||
- name: Get next version | ||
id: semvers | ||
uses: "WyriHaximus/github-action-next-semvers@v1" | ||
with: | ||
version: ${{ steps.tag.outputs.tag }} | ||
- name: Create milestone | ||
uses: "WyriHaximus/github-action-create-milestone@v1" | ||
with: | ||
title: ${{ steps.semvers.outputs.patch }} | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|