Closed luber closed 1 month ago
The workaround is to rollback to older version:
name: Install GitVersion uses: gittools/actions/gitversion/setup@v1 with: versionSpec: '5.x' preferLatestVersion: true
@luber can you try this instead?
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v3.0.0
with:
versionSpec: '5.x'
preferLatestVersion: true
- name: Determine Version for BMS Web App
id: gitversion
uses: gittools/actions/gitversion/execute@v3.0.0
with:
targetPath: ./web-apps
useConfigFile: true
configFilePath: 'web-apps/.gitversion.yml'
So basically only the version spec changes, but you're still using the new actions
@luber can you try this instead?
- name: Install GitVersion uses: gittools/actions/gitversion/setup@v3.0.0 with: versionSpec: '5.x' preferLatestVersion: true - name: Determine Version for BMS Web App id: gitversion uses: gittools/actions/gitversion/execute@v3.0.0 with: targetPath: ./web-apps useConfigFile: true configFilePath: 'web-apps/.gitversion.yml'
So basically only the version spec changes, but you're still using the new actions
Yes. That works
@luber can you try this instead?
- name: Install GitVersion uses: gittools/actions/gitversion/setup@v3.0.0 with: versionSpec: '5.x' preferLatestVersion: true - name: Determine Version for BMS Web App id: gitversion uses: gittools/actions/gitversion/execute@v3.0.0 with: targetPath: ./web-apps useConfigFile: true configFilePath: 'web-apps/.gitversion.yml'
So basically only the version spec changes, but you're still using the new actions
Yes. That works
That means it's a GitVersion v6 issue.
Prerequisites
GitVersion package
GitHub Actions
What are you seeing?
Error: Command failed: /opt/hostedtoolcache/GitVersion.Tool/6.0.0/dotnet-gitversion ./web-apps /output json /output buildserver /config web-apps/.gitversion.yml Unhandled exception. GitVersion.WarningException: Could not find config file at '/home/runner/work/co-pilot/co-pilot/web-apps/web-apps/.gitversion.yml'
What is expected?
configFilePath detected correctly when it is not in the repo root, but sub-folder (a mono-repo case)
Steps to Reproduce
try to detect the git version with the latest version of GitHub Actions for the project in 'web-apps' sub-folder
Output log or link to your CI build (if appropriate).