You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think a way around to solve this problem could be having a script that identifies if the present branch associtated to the PR that is being validated exists in the framework and returns master if not.
Then, as soon as we create a branch at the framework with the same name as the branch associated to the submodule PR, the submodule PR will trigger the pipelines at framework and submodules that have the same name as the PR, and if it does not exist it will use master.
EDIT:
Probably the script needs to receive the name of the repository. Thus two arguments would be necessary:
It seems that the solution you propose is not supported by github actions, we can try some work around to trigger an action that triggers the workflow run from the appropiate branch, but seems rather complicated...
This issue comes after some discussions present at the following PR
rest-for-physics/axionlib#56 (comment)
I think a way around to solve this problem could be having a script that identifies if the present branch associtated to the PR that is being validated exists in the framework and returns master if not.
Something like:
Thus, in the submodule framework validation
frameworkValidation.yml
we would do something like:Then we would change the following lines at the
framework/validation.yml
as follows:framework/.github/workflows/validation.yml
Line 656 in babeff3
Then, as soon as we create a branch at the framework with the same name as the branch associated to the submodule PR, the submodule PR will trigger the pipelines at framework and submodules that have the same name as the PR, and if it does not exist it will use master.
EDIT:
Probably the script needs to receive the name of the repository. Thus two arguments would be necessary:
The text was updated successfully, but these errors were encountered: