image-actions icon indicating copy to clipboard operation
image-actions copied to clipboard

[Bug] The workflow_dispatch trigger does not work

Open steebchen opened this issue 3 months ago • 2 comments

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

steebchen avatar Sep 28 '25 14:09 steebchen

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 avatar Oct 02 '25 03:10 benschwarz

@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

steebchen avatar Oct 02 '25 12:10 steebchen