File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,36 +10,4 @@ permissions:
1010
1111jobs :
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
You can’t perform that action at this time.
0 commit comments