Skip to content

Commit

Permalink
Add a basic workflow for new tags. This will eventually be the trigge…
Browse files Browse the repository at this point in the history
…r for release builds
  • Loading branch information
cmsj committed Mar 11, 2021
1 parent 9bf1eb3 commit 53335ea
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/new_tag.yml
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 }}"

0 comments on commit 53335ea

Please sign in to comment.