actions
actions copied to clipboard
gitversion/setup doesn't work in GH Actions with Ubuntu 20.04
Since today, Github Actions started using Ubuntu 20.04 for its images. When trying to run gitversion/setup 0.9.9 we get:
Command: dotnet tool install GitVersion.Tool --tool-path /tmp/github/_temp/7d617446-79ec-41c3-a31f-064119cf69ec --version 5.6.6 Error: Unable to locate executable file: dotnet. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
A workaround seem to be downgrading to 18.04 by using
runs-on: ubuntu-18.04
But it would be nice if there is a better solution.
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions.
I'm seeing this exact issue too, I've pinned the ubuntu version as the OP suggested as a temporary solution as well
Try using https://github.com/marketplace/actions/setup-nuget-exe-for-use-with-actions before the GitTools action.
Same issue here.
Thanks @ASarco for the workaround.
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions.