Schedules in actions

Does the schedule key work in gitea actions?

on:
  push:
    branches:
      - 'main'
  schedule:
    - cron: '0 21 * * *'

I’ve tried it and it doesn’t seem to be working.

chore(actions): support cron schedule task. by appleboy · Pull Request #22751 · go-gitea/gitea (github.com)

thanks. Then I will just wait until that is merged.

it has been merged 4 days ago ; It will likely appear in next release.

I tested with (rootfull) docker & nighly release without luck ; I didn’t achieved so far to make my sample workflow being triggered automatically :thinking:

/.gitea/workflows/test_schedule.yml

on:
  schedule:
    - cron: '*/5 * * * *'
    - cron: '@hourly'

jobs:
  test_schedule:
    runs-on: ubuntu-latest
    steps:
      - name: Test
        run: echo "Test run"

I am also running the nightly for now, but it works for me.

on:
  schedule:
    - cron: '0 12 * * *'
  push:
    branches:
    - 'main'
jobs:
  docker:
    runs-on: [ubuntu-latest]
    steps:
...
1 Like