Scheduled job on specific branches #26374
-
Hi,
am I correct to assume this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Yes, the workflow must be on the default branch to work. If you want to use code from another branch, you can still do that by passing the branch name to the checkout action:
|
Beta Was this translation helpful? Give feedback.
-
I just want to point out that this feature doesn't really work well with environment protections. Here's my use case: My I want to be able to setup an environment for my With the schedule function, right now it automatically uses my default branch ( If I could specify which branch the schedule is triggered from, I could still have my environment protections (theoretically). |
Beta Was this translation helpful? Give feedback.
-
GitHub is currently asking for feedback on Actions (just click on the Actions tab on any of your projects). I just gave them feedback about this topic. Hope it has an effect. |
Beta Was this translation helpful? Give feedback.
Yes, the workflow must be on the default branch to work. If you want to use code from another branch, you can still do that by passing the branch name to the checkout action: