Skip to content

Trigger action on.schedule only if there are changes to the branch #27128

Answered by weide-zhou
nheath99 asked this question in Actions
Discussion options

You must be logged in to vote

Hi @nheath99 ,

You can use ‘schedule’ event, and in the job check the last commit time via script in the link: https://gist.github.com/jasonrudolph/1810768.

If the last commit is in 24hours, execute your steps, otherwise skip it(use if expression to skip the job ).

Thanks.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mrcjkb
Comment options

Answer selected
Comment options

You must be logged in to vote
1 reply
@OndrejSpanel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment