Update version and create Release's PR Workflow #2
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: Update version and create Release's PR Workflow | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version' | |
required: true | |
type: string | |
jobs: | |
version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Update Changelog | |
id: update_changelog | |
run: | | |
sed -i 's/Unreleased/${{ github.event.inputs.version }}/g' CHANGELOG.md | |
- name: Create pull request | |
id: create_pr | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.token }} | |
branch: release/${{ github.event.inputs.version }} | |
title: "Release: ${{ github.event.inputs.version }}" | |
body: "Pull request for our next release, ${{ github.event.inputs.version }}" | |
base: main |