We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4c87a1 commit 4bb5337Copy full SHA for 4bb5337
.github/workflows/main.yml
@@ -22,6 +22,7 @@ jobs:
22
else
23
echo "No output file"
24
fi
25
+
26
file_to_file:
27
runs-on: ubuntu-latest
28
name: Test just copying the file
index.js
@@ -27,7 +27,7 @@ try
return;
29
const filenameWithoutExtension = filename.substring(0, filename.length - ".json".length);
30
- if(outputJson[filenameWithoutExtension] !== undefined)
+ if(!outputJson.hasOwnProperty(filenameWithoutExtension))
31
{
32
core.error(filenameWithoutExtension + " is already defined (in " + inFile + ")");
33
0 commit comments