Running Actions With Specific Commit

Hi all,

I have a Github Actions pipeline, which works perfectly with different branches,
It’s triggered manually with workflow_dispatch,
I want to be able to run pipeline for not the latest commit, but another one with different commit id,
Is is possible? Somebody preferred to tag the commit and arrange pipeline to be triggered with that tag but it’s a little hard to manage I believe,


Unfortunately, specifying a commit is not supported by the workflow dispatch API. Also see Workflow dispatch - can't set ref to commit SHA

Hi Simran,

Thank you for this information,
What are any other ways to accomplish this apart from workflow dispatch?


You either have to tag the commit that you want to dispatch a workflow for, or you need a workflow with on: push trigger and then push the commit to a branch.

1 Like