You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ISSUE]: gittools/actions/gitversion/execute GitVersion output is not valid JSON output is undefined in Github Action after upgrade from v0 to v3
#1490
I have searched issues to ensure it has not already been reported
GitVersion package
GitHub Actions
What are you seeing?
We have updated the GitTools execute action from v0 to v3.1.11. In these major bumps, additionalArguments has been removed (#1203). Previously, we had the following in our workflow:
At first, we upgraded just the version number (above @v0 -> @v3.1.11) without removing the additionalArguments param. This works, the workflow still runs, but we understandably get this warning
With a simple config file GitVersion.yml at root containing one line: mode: Mainline. Mysteriously, this results is the following error in our workflow:
Error: GitVersion output is not valid JSON
dotnet-gitversion Output:
undefined
I get the same error if I remove the parameters all together like this:
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v3.1.11
Reproducible steps given in the description above. We are running the workflow job on ubuntu-latest. The Github repository is private so I cannot share logs or code with you, unfortunately.
Output log or link to your CI build (if appropriate).
The text was updated successfully, but these errors were encountered:
"Solved" this by changing the versionSpec from 6.0.x to 5.x, and only specify major version of execute from gittools/actions/gitversion/setup@v3 instead of gittools/actions/gitversion/setup@v3.1.11.
Prerequisites
GitVersion package
GitHub Actions
What are you seeing?
We have updated the GitTools execute action from v0 to v3.1.11. In these major bumps,
additionalArguments
has been removed (#1203). Previously, we had the following in our workflow:At first, we upgraded just the version number (above
@v0
->@v3.1.11
) without removing theadditionalArguments
param. This works, the workflow still runs, but we understandably get this warningTherefore I tried updating the workflow job to the following:
With a simple config file
GitVersion.yml
at root containing one line:mode: Mainline
. Mysteriously, this results is the following error in our workflow:I get the same error if I remove the parameters all together like this:
The steps before this looks like this:
Can you help me to understand why this happens and what I can do to fix it?
What is expected?
I expect this workflow step to work as described in the documentation here.
Steps to Reproduce
Reproducible steps given in the description above. We are running the workflow job on
ubuntu-latest
. The Github repository is private so I cannot share logs or code with you, unfortunately.Output log or link to your CI build (if appropriate).
The text was updated successfully, but these errors were encountered: