Problem:
Action is always publishing the app even with submit set to false. I can check the logs and see the successfully submitted 🎉🎉🎉🎉🎉🎉 message if I set submit to false or true.
Solution:
Validate which type the submit input type really is, because the if condition if (submit) {} is always being executed.
Some Tests:
After some tests and reading the docs, the input type will collect the submit option as string (and not boolean as it is described in the readme file). So the if condition if(submit){} is always being executed.
Problem: Action is always publishing the app even with
submit
set tofalse
. I can check the logs and see thesuccessfully submitted 🎉🎉🎉🎉🎉🎉
message if I set submit tofalse
ortrue
.Solution: Validate which type the
submit
input type really is, because the if conditionif (submit) {}
is always being executed.Some Tests: After some tests and reading the docs, the
input
type will collect thesubmit
option as string (and notboolean
as it is described in the readme file). So the if conditionif(submit){}
is always being executed.A quick test doing a
console.log(typeof submit)
returnedstring
. So the solution is to replace the if condition here https://github.com/muhamedzeema/appgallery-deply-action/blob/main/index.js#L190 with: