Skip to content

Commit

Permalink
Merge pull request #80 from OfficeForProductSafetyAndStandards/featur…
Browse files Browse the repository at this point in the history
…e/PVB-169-update-pipeline

PVB-169 revert version numbering in CD build pipeline
  • Loading branch information
RichardPriddy authored Jan 23, 2025
2 parents 3caaa81 + 0e67994 commit 52a46c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
working-directory: Opss.DesignSystem.Frontend.Blazor.Components
run: |
current_version=$(cat Opss.DesignSystem.Frontend.Blazor.Components.csproj | grep '<Version>' | sed -E 's/<\/?Version>//g' | xargs)
new_version=$(echo $current_version | awk -F. '{print $1"."$2"."$3+1}')
new_version=$(echo $current_version | awk -F. '{print $1"."$2+1".0"}')
sed -i "s/<Version>$current_version<\/Version>/<Version>$new_version<\/Version>/" Opss.DesignSystem.Frontend.Blazor.Components.csproj
echo "Updated version to $new_version"
echo "new_version=$new_version" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 52a46c6

Please sign in to comment.