Open funbeedev opened 2 years ago
Hi
Is it possible that this error is because the file is not getting permission for execution ?
Maybe there is some problem in sh file not in yaml as it's working till the line " job: running script to execute modified file:" but after that, the script .sh code isn't working for new files I think.
( I am saying this based on that tuple commit, the error there is saying like permission denied (exit code 126) and that line of yaml can also be seen.)
PS: - Sorry, if it's wrong. I don't know much about yaml and sh, I tried to just work something out.
@deepu14d Thanks for the analysis! But I think its because the Github workflow to detect modified files only works if the file already existed and was modified. If the file is newly created it doesn't detect it as being modified. If you have any further thoughts let me know :)
@deepu14d Thanks for the analysis! But I think its because the Github workflow to detect modified files only works if the file already existed and was modified. If the file is newly created it doesn't detect it as being modified. If you have any further thoughts let me know :)
um yeah you are right
Open for hacktoberfest 2022!
About Bug or problem The GitHub action to execute python file will not run when a file is created rather than modified. This is because the action is designed only to check files that were modified and so will ignore files that are new to the repo.
Steps to reproduce Create a brand new python file and add to the repo. The GitHub action will not see any files as being modified and will print:
Potential fix Modify action
execute-modified-python-file.yml
to detect when new files are added to the repo and execute them.