Iris Classon
Iris Classon - In Love with Code

Manually Triggering a GitHub Action

I could have sworn there has been a Run button somewhere for the workflow files, but as I was redeploying my workflow file today for the first time in a year I could not find a Run option. Sure, re-run was there, but I wanted to run the latest version, not the old and failing workflow file.

Oh well. Simply add workflow_dispatch to your workflow file and the Run Workflow button will magically appear at the top row of your jobs history.

on:
  workflow_dispatch:
  schedule:
    - cron: '0 0 * * *'

Got to love a little bit of magic! BTW, there is also

gh workflow run [<workflow-id> | <workflow-name>] [flags]

for those of you that use GitHub CLI.

Comments

Leave a comment below, or by email.

Last modified on 2025-09-25

comments powered by Disqus