Closed etienne-napoleone closed 2 years ago
could you provide node version?
Isn't node version set by your action here https://github.com/aquiladev/ipfs-action/blob/v0.2.0/action.yaml#L60 ? What would be the easiest way to get this version from my action?
Indeed, forgot about action runtime config.
I can't reproduce it in my pipelines. I'm trying to locate the problem. It seems the issue related to environment.
Could you try action aquiladev/ipfs-action@v0.2.1-alpha.4
?
I've upgraded ipfs-http-client
and action runtime to node16
.
Welp, I'm dumb! Forgot the checkout step so I guess the error was originating from not finding the file. Using you alpha version gave me a more explicit error:
Run aquiladev/ipfs-action@v0.2.1-alpha.4
with:
path: assets/
service: ipfs
timeout: 60000
verbose: false
host: ipfs.komputing.org
port: 443
protocol: https
headers: {}
Error: ENOENT: no such file or directory, lstat 'assets/'
node:fs:1514
handleErrorFromBinding(ctx);
^
Error: ENOENT: no such file or directory, lstat 'assets/'
at Object.lstatSync (node:fs:1514:3)
at upload (/home/runner/work/_actions/aquiladev/ipfs-action/v0.2.1-alpha.4/pinners/ipfs.js:17:24)
at Object.upload (/home/runner/work/_actions/aquiladev/ipfs-action/v0.2.1-alpha.4/pinners/maker.js:13:16)
at Object.upload (/home/runner/work/_actions/aquiladev/ipfs-action/v0.2.1-alpha.4/uploader.js:12:16)
at async run (/home/runner/work/_actions/aquiladev/ipfs-action/v0.2.1-alpha.4/runner.js:35:20) {
errno: -2,
syscall: 'lstat',
code: 'ENOENT',
path: 'assets/'
}
thanks for your time 😓
Hello,
While trying to use the plugin with multiple configurations, including:
and the same ones using a file
path
instead of directory, and also using v0.1.3The result is always: