You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm running a self hosted runner and the workflow job is ran in a container. When a test fails and should upload the screenshots, the following error is displayed. As seen in screenshot below, I have set the if-no-files-found to ignore, but error still displays as if this was configured incorrectly.
Version
V1
V2
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
Environment
self-hosted
Linux
Windows
Mac
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
I just want to add.. I'm experiencing this same issue. Also on a self-hosted linux based runner.
Nothing I do seems to resolve the error. I've tried leaving the if-no-files-found field out, specified an explicit value, with and with out quotes. Even tried a numerical index. Tried @v2, @V3 and @main They all seem to show the same issue.
It does appear to be related to running on a self-hosted runner.
Changing only my "runs-on" from self-hosted to ubuntu-latest fixes the issue.
For added reference, my self-hosted runner is just a set of simple ubuntu-server headless machine.
edit: update.. oddly enough, the upload succeeds! Despite the error.
Edit: Forked the main branch to try a test.
I modified input-helper.ts with the following. And it at least works now on my self-hosted runner.
For some unknown reason, the noFileBehavior value is coming in as a blank, instead of the default 'warn'.
const ifNoFilesFound = core.getInput(Inputs.IfNoFilesFound)
var noFileBehavior: NoFileOptions = NoFileOptions[ifNoFilesFound]
if (!noFileBehavior) {
noFileBehavior = NoFileOptions['warn']
core.warning(
`Unrecognized ${
Inputs.IfNoFilesFound
} input. Provided: ${ifNoFilesFound}. Available options: ${Object.keys(
NoFileOptions
)}. Defaulting to warn.`
)
}
Activity
aljazkosir commentedon Oct 17, 2021
I'm also facing the same issue
vafanasy commentedon Nov 1, 2021
We have similar issue, but as warning and looks like this "if-no-files-found" isn't working.
shanepowell-ast commentedon Apr 26, 2022
I just want to add.. I'm experiencing this same issue. Also on a self-hosted linux based runner.
Nothing I do seems to resolve the error. I've tried leaving the if-no-files-found field out, specified an explicit value, with and with out quotes. Even tried a numerical index. Tried @v2, @V3 and @main They all seem to show the same issue.
It does appear to be related to running on a self-hosted runner.
Changing only my "runs-on" from self-hosted to ubuntu-latest fixes the issue.
For added reference, my self-hosted runner is just a set of simple ubuntu-server headless machine.
edit: update.. oddly enough, the upload succeeds! Despite the error.
Edit: Forked the main branch to try a test.
I modified input-helper.ts with the following. And it at least works now on my self-hosted runner.
For some unknown reason, the noFileBehavior value is coming in as a blank, instead of the default 'warn'.
umutozd commentedon Sep 26, 2022
We are also experiencing this issue. Our configuration looks like the following:
and exactly the below error is printed once this action runs:
I have tried the below configuration too, with the same error message.
The odd thing is, the upload of files succeed. The problem is that this workflow looks to be failed because of this
if-no-files-found
issue.if-no-files-found
#348ameza commentedon Mar 21, 2023
having the same issue, is there a fix ?
raxden commentedon May 15, 2023
same here!
wind57 commentedon Sep 14, 2023
ain't this a beauty, I am already tired of countless github actions issues we are facing :) I hope it's the last time I ever use it.