Skip to content

Commit 2b25656

Browse files
authored
Replace custom bump version workflow with external one (#135)
1 parent 9ba38a2 commit 2b25656

1 file changed

Lines changed: 1 addition & 33 deletions

File tree

.github/workflows/bump-version.yml

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,4 @@ permissions:
1010

1111
jobs:
1212
bump-version:
13-
if: startsWith(github.event.issue.title, 'Bump version to')
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Checkout
17-
uses: actions/checkout@v4
18-
with:
19-
fetch-depth: 0
20-
21-
- name: Tag parsing
22-
id: ver
23-
shell: bash
24-
run: |
25-
title="${{ github.event.issue.title }}"
26-
version="${title#Bump version to }"
27-
version="${version#v}"
28-
version="$(echo "$version" | xargs)"
29-
echo "version=$version" >> "$GITHUB_OUTPUT"
30-
31-
- name: Patch Directory.Build.props
32-
run: |
33-
path="Directory.Build.props"
34-
sed -i -E "s#<Version>[^<]+</Version>#<Version>${{ steps.ver.outputs.version }}</Version>#g" "$path"
35-
36-
- name: Create PR
37-
uses: peter-evans/create-pull-request@v7
38-
with:
39-
base: master
40-
title: Bump version to ${{ steps.ver.outputs.version }}
41-
commit-message: |
42-
Bump version to ${{ steps.ver.outputs.version }}
43-
branch: bump-version-to-${{ steps.ver.outputs.version }}
44-
body: |
45-
Closes #${{ github.event.issue.number }}
13+
uses: The-Poolz/.net-workflows/.github/workflows/bump-version.yml@v1.0.3

0 commit comments

Comments
 (0)