Skip to content

release prep

release prep #5

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "release prep"
on:
workflow_dispatch:
inputs:
version:
description: "The next version that will be released"
required: true
permissions:
contents: "write"
pull-requests: "write"
jobs:
changelog:
name: "changelog"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
with:
fetch-depth: 0
- name: "gh changelog new --next-version ${{ github.event.inputs.version }}"
run: |
export GH_HOST=github.com
gh extension install chelnak/gh-changelog
gh changelog new --next-version ${{ github.event.inputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "create pull request"
uses: "peter-evans/create-pull-request@v4"
with:
title: "Release prep for version ${{ github.event.inputs.version }}"
commit-message: "automated changelog generation"
body: "This PR contains an automatically generated changelog."
base: "main"
labels:
"maintenance"