Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trigger GitHub action manually and on schedule

I want to trigger GitHub action manually and on schedule but the following code produces and error

name: Update data

on: 
   workflow_dispatch
   schedule:
     - cron: "0 5 */30 * *"

I'm searching for the solution how to do it correctly and have both options.

like image 464
Helen Avatar asked Nov 28 '25 03:11

Helen


1 Answers

you need a colon after workflow_dispatch.

name: Update data

on: 
   workflow_dispatch:
   schedule:
     - cron: "0 5 */30 * *"
like image 97
banyan Avatar answered Nov 29 '25 19:11

banyan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!