Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub action 'execute-modified-python-file.yml' will only execute first file and ignore the rest when multiple files are modified at once #93

Open
funbeedev opened this issue Oct 11, 2021 · 2 comments
Assignees
Labels
bug Something isn't working github-actions Related to GitHub Actions hacktoberfest help wanted Extra attention is needed

Comments

@funbeedev
Copy link
Member

funbeedev commented Oct 11, 2021

About Bug or problem
GitHub action to execute modified python file is implemented in .github/workflows/execute-modified-python-file.yml

This action executes any files that are modified in the repo. A JSON is generated listing the modified files and run-modified-python.sh will execute the file.
However, this only works properly when one file is modified at a time. If for example, two files are modifed at once, the JSON will list two files but only the first will be executed.
This example GitHub action report shows two files were modified but only the first file in the list was executed.

Steps to reproduce
Modify more than one file at once and commit them to repo.

Potential fix
Implement a loop that will scan through JSON list of modified files and execute each one by one.

@funbeedev funbeedev added the bug Something isn't working label Oct 11, 2021
@dilroseR
Copy link
Contributor

Can I know more about this in detail? @funbeedev

@funbeedev funbeedev changed the title Allow multiple source files to be executed when actions is running GitHub action will only execute first file and ignore the rest when multiple files are modified at once Oct 23, 2021
@funbeedev
Copy link
Member Author

@dilroseR If you're still interested in working on this I've added more detail to the description!

@funbeedev funbeedev added hacktoberfest help wanted Extra attention is needed labels Oct 23, 2021
@funbeedev funbeedev added the github-actions Related to GitHub Actions label Oct 4, 2022
@funbeedev funbeedev changed the title GitHub action will only execute first file and ignore the rest when multiple files are modified at once GitHub action 'execute-modified-python-file.yml' will only execute first file and ignore the rest when multiple files are modified at once Oct 4, 2022
@sabderemane sabderemane self-assigned this Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working github-actions Related to GitHub Actions hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants