Scheduled workflow not triggering on self-hosted Gitea (v1.25.5)

Hi everyone,

I’m running Gitea 1.25.5 self-hosted via Docker and I can’t get a scheduled workflow to trigger automatically. The “Start actions schedule tasks” cron task is active in the list and runs every minute correctly (I can see it in Site Administration → Cron Tasks with regular execution timestamps), but my workflow is never executed on schedule. Manual triggering via workflow_dispatch works fine.

My setup:

  • Gitea 1.25.5 with TZ=Europe/Rome

  • Runner: act_runner registered as Instance-level, currently idle

  • Workflow file located at .gitea/workflows/issue-reminders.yml on the default branch

on:
  workflow_dispatch:
    inputs:
      schedule_override:
        description: 'Simulate schedule (daily/weekly)'
        required: true
        default: 'daily'
        type: choice
        options:
          - daily
          - weekly
  schedule:
    - cron: '0 8 * * 1-5'
    - cron: '0 8 * * 1'

jobs:
  daily-personal:
    if: github.event.schedule == '0 8 * * 1-5' || github.event.inputs.schedule_override == 'daily'
    runs-on: ubuntu-latest
    steps:
      - name: Example step
        run: echo "daily"

Any suggestions on what might be preventing the schedule from registering?

Thanks in advance.

Ok, it is Gitea bug, github.event.schedule is empty so the workflow never enter in “if” condition.
Fixed with script with date and time calculation to validate execution.

This should have been fixed by Add event.schedule context for schedule actions task by lunny · Pull Request #37320 · go-gitea/gitea · GitHub