-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df86e3e
commit 417f479
Showing
1 changed file
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,17 +54,17 @@ jobs: | |
- name: Debug GitVersion config presence | ||
run: cat src/gitversion.yml | ||
|
||
- name: Setup GitVersion | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: "6.0.4" | ||
- name: Setup GitVersion Tool | ||
run: | | ||
# Install GitVersion as a global tool | ||
dotnet tool install --global GitVersion.Tool --version 6.0.5 | ||
# Add the tool to PATH | ||
echo "$HOME/.dotnet/tools" >> $GITHUB_PATH | ||
- name: Show GitVersion config | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
useConfigFile: true | ||
targetPath: ${{ github.workspace }} | ||
configFilePath: "src/gitversion.yml" | ||
run: | | ||
# Execute GitVersion and output JSON | ||
gitversion /output json /config src/gitversion.yml | ||
- name: Validate preview settings | ||
run: | | ||
|
@@ -121,19 +121,25 @@ jobs: | |
git status | ||
git log --oneline -n 5 | ||
- name: Setup GitVersion | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: "6.0.5" | ||
- name: Setup GitVersion Tool | ||
run: | | ||
# Install GitVersion as a global tool | ||
dotnet tool install --global GitVersion.Tool --version 6.0.5 | ||
# Add the tool to PATH | ||
echo "$HOME/.dotnet/tools" >> $GITHUB_PATH | ||
- name: Determine version | ||
id: gitversion | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
useConfigFile: true | ||
targetPath: ${{ github.workspace }} | ||
configFilePath: "src/gitversion.yml" | ||
updateAssemblyInfo: true | ||
run: | | ||
# Execute GitVersion and capture JSON output | ||
gitversion /output json /config src/gitversion.yml > gitversion.json | ||
# Extract desired outputs | ||
version=$(jq -r '.SemVer' gitversion.json) | ||
prerelease_tag=$(jq -r '.PreReleaseTag' gitversion.json) | ||
prerelease_number=$(jq -r '.PreReleaseNumber' gitversion.json) | ||
echo "SemVer=$version" >> $GITHUB_OUTPUT | ||
echo "PreReleaseTag=$prerelease_tag" >> $GITHUB_OUTPUT | ||
echo "PreReleaseNumber=$prerelease_number" >> $GITHUB_OUTPUT | ||
- name: Compose version | ||
id: version_info | ||
|