Draft Release Notes #9
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
name: Draft Release Notes | |
on: | |
workflow_dispatch: | |
jobs: | |
draft-stable: | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout the requested branch | |
uses: actions/[email protected] | |
- name: Fetch all tags and branches | |
run: git fetch --prune --unshallow | |
- name: Cache Tools | |
uses: actions/[email protected] | |
with: | |
path: tools | |
key: ${{ runner.os }}-tools-${{ hashFiles('setup.cake') }} | |
- name: install .NET versions | |
uses: actions/[email protected] | |
with: | |
# codecov in cake.recipe needs 2.1! | |
# version used for GitReleaseManager needs .NET Core 3.0 | |
dotnet-version: | | |
3.1.x | |
5.0.x | |
6.0.x | |
- name: Set up git version | |
if: ${{ !contains(github.ref, '/hotfix/') && !contains(github.ref, '/release/') }} | |
uses: gittools/actions/gitversion/[email protected] | |
with: | |
versionSpec: "5.x" | |
- name: Run git version | |
if: ${{ !contains(github.ref, '/hotfix/') && !contains(github.ref, '/release/') }} | |
id: gitversion | |
uses: gittools/actions/gitversion/[email protected] | |
- name: Create release branch ${{ github.event.inputs.version }} | |
if: ${{ steps.gitversion.outputs.majorMinorPatch }} | |
run: git switch -c release/${{ steps.gitversion.outputs.majorMinorPatch }} | |
- name: Push new branch | |
if: ${{ steps.gitversion.outputs.majorMinorPatch }} | |
uses: ad-m/[email protected] | |
with: | |
branch: "release/${{ steps.gitversion.outputs.majorMinorPatch }}" | |
github_token: ${{ secrets.GH_TOKEN }} | |
- name: Drafting Release Notes | |
uses: cake-build/cake-action@v2 | |
with: | |
script-path: setup.cake | |
target: releasenotes | |
verbosity: Diagnostic | |
cake-version: tool-manifest |