Gitea 1.21.11 scheduled tasks are not working

I know that this version is no longer supported, but judging by other threads, people in earlier versions could use the functionality. I’ve tried a lot, but I don’t want to do anything. I tried it on GitHub. It is started using workflow_dispatch.

Can you tell me the version where schedule is guaranteed to work?

on:
schedule:
- cron: ‘*/5 * * * *’

jobs:

hello:
name: Say Hello
runs-on: ubuntu-latest

steps:
  - name: Hello.
    run: |
      RED='\033[0;31m'
      GREEN='\033[0;32m'
      NC='\033[0m'

      echo -e "${RED}Hello${NC}"