2. Update Versions #21
Workflow file for this run
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: 2. Update Versions | |
on: | |
workflow_dispatch: | |
inputs: | |
version_notes: | |
description: 'Version Notes (example, including quotes: " - First change`n - Second Change")' | |
jobs: | |
update_versions: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Determine Version Number | |
id: determine_version_number | |
run: echo "VERSION_NUMBER=$($env:GITHUB_REF_NAME.Replace('release/v', ''))" >> $env:GITHUB_OUTPUT | |
- name: Run UpdateVersions.ps1 | |
run: Installer\UpdateVersions.ps1 ${{ steps.determine_version_number.outputs.VERSION_NUMBER }} ${{ github.event.inputs.version_notes }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@main | |
with: | |
commit-message: Bump version to ${{ steps.determine_version_number.outputs.VERSION_NUMBER }} | |
title: Bump version to ${{ steps.determine_version_number.outputs.VERSION_NUMBER }} | |
body: > | |
Bump version to ${{ steps.determine_version_number.outputs.VERSION_NUMBER }} | |
branch: feature/update-versions-${{ steps.determine_version_number.outputs.VERSION_NUMBER }} |