Closed rndquu closed 3 months ago
@gentlementlegen @whilefoo Pls check the description. Not sure if the issue is relevant, perhaps there is another way to call a specific branch of a plugin.
Thank you for the details. It is likely that the parser we made to extract the repo / owner / branch / version doesn't support your test case which results in the plugin not being found. Will have a look.
@rndquu So I replicated your test case by having a pull/1
branch in my repository, and calling it with the following configuration
plugins:
'*':
- uses:
- plugin: gentlementlegen/user-activity-watcher:compute.yml@pull/1
type: github
with:
unassignUserThreshold: 0.003473
sendRemindersThreshold: 0.000695
Which resulted in the workflow running as expected: https://github.com/gentlementlegen/user-activity-watcher/actions/runs/9479416128
Also tested within an org: https://github.com/Meniole/user-activity-watcher/actions/runs/9479199313
I still added a test case in the linked PR to make sure this pattern is properly parsed. The only time I had a not found
error is when my main branch did not contain the Workflow, because even if the pull/1
branch does contain it, if it is not present in the default
branch and it seems that GitHub cannot run it, which might have been your case? Or, it has been fixed through my last PR to parse Org configurations. If you could give it another run with the latest version, would be appreciated.
! No price label has been set. Skipping permit generation.
@rndquu So I replicated your test case by having a
pull/1
branch in my repository, and calling it with the following configurationplugins: '*': - uses: - plugin: gentlementlegen/user-activity-watcher:compute.yml@pull/1 type: github with: unassignUserThreshold: 0.003473 sendRemindersThreshold: 0.000695
Which resulted in the workflow running as expected: https://github.com/gentlementlegen/user-activity-watcher/actions/runs/9479416128
Also tested within an org: https://github.com/Meniole/user-activity-watcher/actions/runs/9479199313
I still added a test case in the linked PR to make sure this pattern is properly parsed. The only time I had a
not found
error is when my main branch did not contain the Workflow, because even if thepull/1
branch does contain it, if it is not present in thedefault
branch and it seems that GitHub cannot run it, which might have been your case? Or, it has been fixed through my last PR to parse Org configurations. If you could give it another run with the latest version, would be appreciated.
You're right, it seems that everything worked as expected initially and I just misconfigured something. I've double checked the latest kernel and specific branches are called as expected. @gentlementlegen Thank you for your time and effort.
Check this config which is meant to call the
pull/1
branch of the https://github.com/rndquu/user-activity-watcher plugin via github actions.The kernel throws this error for the above config:
It seems that the kernel doesn't support calling a specific branch of the plugin which is really useful for QA.
What should be done: