chore: why so hard
This commit is contained in:
@@ -19,7 +19,7 @@ jobs:
|
||||
dotnet-version: 10.0.x
|
||||
- name: Determine version
|
||||
id: version
|
||||
run: ./scripts/determine-version.sh main | tee -a $GITHUB_OUTPUT
|
||||
run: ./scripts/determine-version.sh main
|
||||
- name: Update version in csproj
|
||||
if: steps.version.outputs.VERSION
|
||||
run: ./scripts/update-version.sh "${{ steps.version.outputs.VERSION }}"
|
||||
|
||||
@@ -54,13 +54,12 @@ fi
|
||||
if [[ "$majorNew" -eq "$majorCurrent" ]] && [[ "$minorNew" -eq "$minorCurrent" ]] && [[ "$patchNew" -eq "$patchCurrent" ]]; then
|
||||
if [[ "$hasExistingTag" == "false" ]]; then
|
||||
version="0.0.0"
|
||||
echo "VERSION=$version"
|
||||
echo "::notice::First release: publishing version 0.0.0"
|
||||
echo "VERSION=$version" >> "$GITHUB_OUTPUT"
|
||||
echo "First release: publishing version 0.0.0"
|
||||
else
|
||||
echo "::notice::No version bump needed, skipping release"
|
||||
exit 0
|
||||
fi
|
||||
else
|
||||
version="$majorNew.$minorNew.$patchNew"
|
||||
echo "VERSION=$version"
|
||||
echo "VERSION=$version" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user