From e9f3edf169d1bc774a2123be315af5a8d26ff157 Mon Sep 17 00:00:00 2001
From: Stanislav Vysotskyi <66203238+ArdenHide@users.noreply.github.com>
Date: Wed, 24 Sep 2025 15:38:18 +0300
Subject: [PATCH] Create `bump-version.yml`
---
.github/workflows/bump-version.yml | 45 ++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
create mode 100644 .github/workflows/bump-version.yml
diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml
new file mode 100644
index 0000000..3254e59
--- /dev/null
+++ b/.github/workflows/bump-version.yml
@@ -0,0 +1,45 @@
+name: Bump version
+
+on:
+ issues:
+ types: [opened, reopened]
+
+permissions:
+ contents: write
+ pull-requests: write
+
+jobs:
+ bump-version:
+ if: startsWith(github.event.issue.title, 'Bump version to')
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Tag parsing
+ id: ver
+ shell: bash
+ run: |
+ title="${{ github.event.issue.title }}"
+ version="${title#Bump version to }"
+ version="${version#v}"
+ version="$(echo "$version" | xargs)"
+ echo "version=$version" >> "$GITHUB_OUTPUT"
+
+ - name: Patch Directory.Build.props
+ run: |
+ path="Directory.Build.props"
+ sed -i -E "s#[^<]+#${{ steps.ver.outputs.version }}#g" "$path"
+
+ - name: Create PR
+ uses: peter-evans/create-pull-request@v7
+ with:
+ base: master
+ title: Bump version to ${{ steps.ver.outputs.version }}
+ commit-message: |
+ Bump version to ${{ steps.ver.outputs.version }}
+ branch: bump-version-to-${{ steps.ver.outputs.version }}
+ body: |
+ Closes #${{ github.event.issue.number }}