Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkout often fails early on windows at version >=4 #1676

Open
EivindAntonsen opened this issue Apr 9, 2024 · 0 comments
Open

Checkout often fails early on windows at version >=4 #1676

EivindAntonsen opened this issue Apr 9, 2024 · 0 comments

Comments

@EivindAntonsen
Copy link

Hi there, I hope this issue is posted to the correct recipient. I believe it is.

I am running this action in a GIthub Actions workflow where this is the first step of a larger pipeline. Often it works, but some times it fails very early on. That prompts me to restart the flow, and then it usually works. Below is a snippet of the error message I get.

This is a windows runner.

Exception calling "ExtractToDirectory" with "2" argument(s): "Could not find a part of the path 'this is an absolute path to a file in my solution in the runners workspace'"
At line:1 char:111
+ ... catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('C:\a ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : DirectoryNotFoundException

The step in my workflow looks like this:

jobs:
  CI:
    runs-on: windows

    steps:
      - name: Checkout
        uses: actions/checkout@v4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant