fetch-gh-release-asset icon indicating copy to clipboard operation
fetch-gh-release-asset copied to clipboard

Download to target fails with `illegal operation on a directory, open '.dir/`

Open victoryNap opened this issue 2 years ago • 4 comments
trafficstars

Given the following configuration:

        name: Download release asset
        uses: dsaltares/fetch-gh-release-asset@master
        with:
          repo: '***'
          version: 'tags/${{ fromJson(steps.get_version.outputs.compiler_version).version }}'
          file: 'test.jar'
          token: ${{ secrets.GHCR_TOKEN }}
          target: '.dir/'

The following is returned as an error:

Run dsaltares/fetch-gh-release-asset@master
  with:
    repo: ***
    version: tags/***
    file: test.jar
    token: ***
    target: .dir/
    regex: false
node:internal/process/promises:27[9](***)
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: EISDIR: illegal operation on a directory, open '.dir/'] {
  errno: -21,
  code: 'EISDIR',
  syscall: 'open',
  path: '.dir/'
}

I know that .dir is available, for the time being, I'm downloading to the workspace root, and moving the jar, but this seems like a bug.

victoryNap avatar Jul 15 '23 23:07 victoryNap

got the same error:

node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: EISDIR: illegal operation on a directory, open 'projects/ci'] {
  errno: -21,
  code: 'EISDIR',
  syscall: 'open',
  path: 'projects/ci'
}

zischknall avatar Jul 18 '23 09:07 zischknall

Can you provide a repro case I can access to test?

dsaltares avatar Apr 26 '24 07:04 dsaltares

Any solution or workaround?

Architrixs avatar May 13 '24 08:05 Architrixs

Hey folks,

I can't really remember this issue. But I just double checked and it seems I resorted to not use the path input to prevent the issue from happening.

zischknall avatar May 13 '24 08:05 zischknall