actions / checkout

Action for checking out a repo

Home Page:https://github.com/features/actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Checkout often fails early on windows at version >=4

EivindAntonsen opened this issue · comments

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