-
I have a task that runs hourly - but I want to run it very slightly differently once a day: I want to skip one of the steps in it every 24 hours. Any neat mechanisms for me to do that? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
@simonw , You can try the following configurations in your workflow:
1) The first cron ’ 0 1-23 * * *’ will trigger the workflow hourly from the 1st hour to 23th hour. 2) The second cron ’ 0 0 * * *’ will only trigger the workflow at 00:00 UTC. 3) The property " github.event.schedule" of the github context returns the cron of the schedule that triggers the current workflow run. 4) On the step that need to be skipped every 24 hours, set the if conditional to check which cron of the schedule triggers the current workflow run. If the cron is not ’ 0 0 * * *’, execute this step, otherwise skip this step. |
Beta Was this translation helpful? Give feedback.
-
Thanks very much - this looks like exactly the solution I need. |
Beta Was this translation helpful? Give feedback.
-
It worked! simonw/big-local-datasette#11 |
Beta Was this translation helpful? Give feedback.
-
Just wanted to say thank @brightran! Was looking to figure out the payloads available on |
Beta Was this translation helpful? Give feedback.
@simonw ,
You can try the following configurations in your workflow:
1) The first cron ’ 0 1-23 * * *’ will trigger the workflow hourly from the 1st hour to 23th hour.
2) The second cron ’ 0 0 * * *’ will only trigger the workflow at 00:00 UTC.
3) The property " github.event.schedule" of the github context returns the cron of the schedule that triggers the current workflow run.
4) On the …