Description:
setup-dotnet does not handle correctly absolute paths as value for the global-json-file input. The action always join the provided value with the github workspace (aka respository's root) instead of using it as-is if it's an absolute path.
Task version:
v3
Platform:
Runner type:
Repro steps:
Pass an absolute path as value for the global-json-file input that points to a global.json file in a subfolder.
Do not use the dotnet-version input.
ex:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: ${{ github.workspace }}/backend/global.json
Expected behavior:
The action finishes with success and the provided global.json is used.
Actual behavior:
The action fails with this error:
Error: The specified global.json file '/home/runner/work/reponame/reponame/backend/global.json' does not exist
Description:
setup-dotnetdoes not handle correctly absolute paths as value for theglobal-json-fileinput. The action always join the provided value with the github workspace (aka respository's root) instead of using it as-is if it's an absolute path.Task version:
v3
Platform:
Runner type:
Repro steps:
Pass an absolute path as value for the
global-json-fileinput that points to aglobal.jsonfile in a subfolder.Do not use the
dotnet-versioninput.ex:
Expected behavior:
The action finishes with success and the provided
global.jsonis used.Actual behavior:
The action fails with this error: