GitHub
GITHUB-ACTIONS · Question #20
A Scheduled workflows run on the:
The correct answer is A. latest commit and branch on which the workflow was triggered,. Scheduled workflows in GitHub Actions are triggered at specified times, and they run on the latest commit of the branch that triggers the workflow. This means the workflow will run on the most recent commit on the branch that was active at the time the scheduled event occurs.
Author and maintain workflows
Question
A Scheduled workflows run on the:
Options
- Alatest commit and branch on which the workflow was triggered,
- Blatest commit from the branch named schedule,
- Clatest commit from the branch named main,
- Dspecified commit and branch from the workflow YAML file,
- Elatest commit on the default or base branch
How the community answered
(45 responses)- A96% (43)
- C2% (1)
- E2% (1)
Explanation
Scheduled workflows in GitHub Actions are triggered at specified times, and they run on the latest commit of the branch that triggers the workflow. This means the workflow will run on the most recent commit on the branch that was active at the time the scheduled event occurs.
Topics
#scheduled workflows#cron triggers#default branch#schedule event
Community Discussion
No community discussion yet for this question.