fetch-gh-release-asset
fetch-gh-release-asset copied to clipboard
Download to target fails with `illegal operation on a directory, open '.dir/`
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.
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'
}
Can you provide a repro case I can access to test?
Any solution or workaround?
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.