I've made an action. I'd like for this to run on branch foo
at a schedule(in my case, twice a day).
Here's what I've got so far:
repo/.github/workflows/daily-foo-tests.yml
name: Run integration tests on foo branch twice a day
on:
schedule:
# Execute at 00:01 and 13:01 UTC daily
- cron: '00 01,13 * * *'
jobs:
build:
name: Run UI Automation
runs-on: [self-hosted, macOS, X64]
steps:
- uses: actions/checkout@v2
- name: dotnet build
with: { ref: foo }
// continues to do stuff, not important
Now, this action has been pushed to said foo
branch. However, going to github.com/org/repo/actions
, it does not trigger(I've waited 24 hours now; it should've done something at this point).
What is the correct way to trigger a scheduled github action workflow on a specified branch?