Skip to content

Commit

Permalink
Update bump version action
Browse files Browse the repository at this point in the history
  • Loading branch information
Nix1983 committed Nov 1, 2023
1 parent a49ffbf commit 249c5ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/bump_Version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Bump Version
on:
push:
branches:
- main # Trigger nur für Änderungen im `main` Branch
- master

jobs:
bump-version:
Expand All @@ -17,15 +17,15 @@ jobs:
with:
dotnet-version: '7.0.x'

# Erhöhe die Versionsnummer
# Increase Version number
- name: Bump version
run: |
version=$(grep -oP '<Version>\K(.*)(?=<)' TablerForNet.csproj)
IFS='.' read -ra PARTS <<< "$version"
new_version="${PARTS[0]}.${PARTS[1]}.${PARTS[2]}.$((PARTS[3] + 1))"
sed -i "s|<Version>$version</Version>|<Version>$new_version</Version>|g" TablerForNet.csproj
# Committe und pushe die Änderungen
# Commit changes
- name: Commit and push
run: |
git config --local user.email "action@github.com"
Expand Down

0 comments on commit 249c5ab

Please sign in to comment.