-
Notifications
You must be signed in to change notification settings - Fork 311
40 lines (31 loc) · 981 Bytes
/
bump_version.yml
File metadata and controls
40 lines (31 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Bump Version
on:
workflow_dispatch
permissions:
contents: write
pull-requests: write
jobs:
bump_version:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Calculate next version
id: version
shell: pwsh
run: |
$newVer = .\tools\get-next-main-version.ps1
echo "NEW_VERSION=$newVer" >> $env:GITHUB_ENV
.\tools\set-version.ps1 $newVer -UpdateAssemblyAndFileVersion
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git commit -am "Bump version to $newVer"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
branch: bump/${{ env.NEW_VERSION }}
base: master
title: "Bump version to ${{ env.NEW_VERSION }}"
body: "Automated version bump after release."
merge-method: rebase