Closed rndquu closed 2 months ago
@gentlementlegen Pls check the description
@rndquu I think this is an expected behavior, because when the workflow is missing from the main branch it cannot be triggered by any sort of dispatch. I will see if I can replicate this behavior, but I think that if you add a manual workflow_dispatch
you cannot use Github's UI to manually trigger it either, if it is not present in the default branch.
Here is the result of my research:
I created this repository, which is a fork of assistive-pricing
repo. Default branch is develop
, another branch is main
.
Within develop
I deleted the compute file. Main has that compute file.
My configuration looks like:
- uses:
- plugin: Meniole/test-automated-merging@main
with:
approvalsRequired:
collaborator: 1
mergeTimeout:
collaborator: "2 minutes"
Supposedly, it should call the compute located within main. But on run I get
{
"message": [
"Error in event handler",
"HttpError: Not Found - https://docs.github.com/rest/actions/workflows#create-a-workflow-dispatch-event"
],
"level": "error",
"timestamp": 1721191885993
}
We can also notice that the workflow is missing from Github's UI despite having a workflow_dispatch
This confirms the documentation, stating
This trigger only receives events when the workflow file is on the default branch.
I don't think there is a workaround. The workflow has to be present in the default
branch.
@gentlementlegen Thank you very much for the research. I see, so it's not the kernel bug but expected behavior and the docs explicitly say that the workflow file should be located in the default branch.
# Issue was not closed as completed. Skipping.
# Issue was not closed as completed. Skipping.
Check this bot's config. It's trying to call the
pull/1
branch of the https://github.com/rndquu/automated-merging/ repository.At the time of creating this issue the
development
(default) branch of the https://github.com/rndquu/automated-merging/ repository doesn't have thecompute.yml
file. Thecompute.yml
file is introduced only in this PR.The thing is that although the config is set to call the
pull/1
branch (wherecompute.yml
exists) the kernel somehow throws this error:The expected behavior is that
compute.yml
is called from thepull/1
branch.