课程: Coding Exercises: GitHub

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Run actions on a schedule

Run actions on a schedule

(triumphant electronic tune) - [Ray] You've got to get hub action, and you want to make sure that it runs not just once, or when the users push something to your repo, but every day at 8:30 AM. How would you do something like that? Now we'll give you a couple of seconds to pause the video and see how you may have solved something like this. (bright electronic tune) Now, for this example, I'm going to be using the action I did on the previous video. So we're going to go into this workflow file, and we're going to modify it just a little bit. So you can see right here that it shows you that this will be activated when somebody pushes into our main branch. What we want to do is run this on a schedule. So we'll say schedule right here. And then on the next line, we'll put a dash and the word cron, with a colon and then a string. What I want to do here is 30 and then space 8, and then a series of three stars.…

内容