actions icon indicating copy to clipboard operation
actions copied to clipboard

gitversion/setup doesn't work in GH Actions with Ubuntu 20.04

Open ASarco opened this issue 4 years ago • 5 comments

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.

ASarco avatar Feb 23 '21 13:02 ASarco

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.

stale[bot] avatar Jun 02 '21 17:06 stale[bot]

I'm seeing this exact issue too, I've pinned the ubuntu version as the OP suggested as a temporary solution as well

connorwyatt avatar Jul 03 '21 07:07 connorwyatt

Try using https://github.com/marketplace/actions/setup-nuget-exe-for-use-with-actions before the GitTools action.

BinToss avatar Jul 15 '21 13:07 BinToss

Same issue here.

Thanks @ASarco for the workaround.

KairaMiu avatar Dec 14 '21 06:12 KairaMiu

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.

stale[bot] avatar Apr 16 '22 11:04 stale[bot]