derberg / manage-files-in-multiple-repositories

GitHub Action that introduces support for global workflows. Global workflows are the one you update in just one repo and they are automatically updated in other repositories.
MIT License
51 stars 18 forks source link

fix: readdir recursively for workflow dispatch event #38

Closed bbleau closed 2 years ago

bbleau commented 2 years ago

Description

When attempting to issue a workflow_dispatch event the workflow is returning zero changed files. Upon investigating the filesToCheckForReplication variable was coming back populated only one level deep.

To resolve this a function was created that recursively reads the directory to find the file paths from the root path. This function then returns an array of strings with all found paths.

derberg commented 2 years ago

@bbleau omg man!!! I just came to the project to investigate why workflow dispatch doesn't work for me as I expected 😆 and bang! PR is here, thanks a bunch!!!

derberg commented 2 years ago

@bbleau just used it in my project -> https://github.com/asyncapi/.github/runs/7022844780?check_suite_focus=true and worked like a charm