Skip to content

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

Open
@EivindAntonsen

Description

@EivindAntonsen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions