Skip to content

Push trigger works but not the schedule one #26985

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

You must be logged in to vote

Hi @galderz ,

Scheduled event only triggers workflow on default or base branch, however your branch(mandrel-master) is not.

As an alternative, you can create a workflow yaml with scheduled event on master(default) branch, and checkout the branch(mandrel-master) for the steps.  Code sample as below:

on:
  schedule:
    - cron: '*/15 * * * *'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: mandrel-master

Thanks.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants