[Bug] The workflow_dispatch trigger does not work
Describe the bug
I don't understand how I can run the workflow manually. In the readme it says I can trigger it and it also defines the workflow_dispatch even. However, when I try to trigger the workflow manually, it just gets skipped. I tried to remove the skip but then the workflow itself returns an error: Error: This action only runs for pushes to PRs. So how can I manually trigger it for all existing images? As I have a bunch of images in my repo already.
How To Reproduce
https://github.com/theopenco/llmgateway/actions/workflows/calibreapp-image-actions.yml
Screenshots
No response
Relevant Log Output
Code of Conduct
- [x] I agree to follow this project’s Code of Conduct
Hey @steebchen, good catch. I added this workflow run when I released the recent updates to image-actions, but in the midst of all the changes I forgot to finalise the workflow_dispatch.
It should work, but we'll need an update the event handling in entrypoint.js to include the workflow_dispatch event type, and the likely the event payload.action also:
https://github.com/calibreapp/image-actions/blob/05b1cf44e88c3b041b841452482df9497f046ef7/entrypoint.ts#L9-L27
If someone wants to pick this up, I'll be happy to review and help get it released.
@benschwarz
via #367
I skipped the PR comment for now because the workflow_dispatch doesn't have a PR context, ideally this would be still done somehow but I think this is good for now