Merge pull request #29 from cake-contrib/renovate/configure #7
This file contains hidden or 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-latest | |
steps: | |
- name: Checkout the requested branch | |
uses: actions/checkout@v4 | |
- name: Fetch all tags and branches | |
run: git fetch --prune --unshallow | |
- name: Cache Tools | |
uses: actions/cache@v4 | |
with: | |
path: tools | |
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake', '.config/dotnet-tools.json') }} | |
- 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.0.0 | |
with: | |
script-path: recipe.cake | |
target: releasenotes | |
verbosity: Normal | |
cake-version: tool-manifest | |
cake-bootstrap: true |