You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/services
Lunny Xiao 0d55f64e6c
chore(actions): support cron schedule task (#26655)
Replace #22751 

1. only support the default branch in the repository setting.
2. autoload schedule data from the schedule table after starting the
service.
3. support specific syntax like `@yearly`, `@monthly`, `@weekly`,
`@daily`, `@hourly`

## How to use

See the [GitHub Actions
document](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule)
for getting more detailed information.

```yaml
on:
  schedule:
    - cron: '30 5 * * 1,3'
    - cron: '30 5 * * 2,4'

jobs:
  test_schedule:
    runs-on: ubuntu-latest
    steps:
      - name: Not on Monday or Wednesday
        if: github.event.schedule != '30 5 * * 1,3'
        run: echo "This step will be skipped on Monday and Wednesday"
      - name: Every time
        run: echo "This step will always run"
```

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>

---------


Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
10 months ago
..
actions chore(actions): support cron schedule task (#26655) 10 months ago
agit Add context parameter to some database functions (#26055) 12 months ago
asymkey Add context cache as a request level cache (#22294) 1 year ago
attachment Preserve file size when creating attachments (#23406) 1 year ago
auth Use `object-fit: contain` for oauth2 custom icons (#26493) 11 months ago
automerge Improve queue and logger context (#24924) 1 year ago
context Replace `interface{}` with `any` (#25686) 1 year ago
convert feat: implement organization secret creation API (#26566) 11 months ago
cron chore(actions): support cron schedule task (#26655) 10 months ago
externalaccount Replace `interface{}` with `any` (#25686) 1 year ago
forms Allow to archive labels (#26478) 11 months ago
gitdiff Fix stderr usages (#26477) 11 months ago
issue Add transaction when creating pull request created dirty data (#26259) 11 months ago
lfs Bump github.com/golang-jwt/jwt to v5 (#25975) 12 months ago
mailer Replace `interface{}` with `any` (#25686) 1 year ago
markup Decouple the different contexts from each other (#24786) 1 year ago
migrations Add context parameter to some database functions (#26055) 12 months ago
mirror Sync branches when mirroring (#25722) 1 year ago
org Refactor rename user and rename organization (#24052) 1 year ago
packages Allow package cleanup from admin page (#25307) 11 months ago
pull Add transaction when creating pull request created dirty data (#26259) 11 months ago
release Less naked returns (#25713) 1 year ago
repository Add link to job details and tooltip to commit status in repo list in dashboard (#26326) 11 months ago
task Add `Retry` button when creating a mirror-repo fails (#26228) 11 months ago
user add unit test for user renaming (#26261) 11 months ago
webhook Modify the content format of the Feishu webhook (#25106) 10 months ago
wiki Introduce ctx.PathParamRaw to avoid incorrect unescaping (#26392) 11 months ago