fix: avoid frequent scheduled task (#2274)

pull/2277/head
blooming 8 months ago committed by GitHub
parent 230c0dbb8b
commit 691cf740af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -15,8 +15,6 @@
name: Publish Docker image name: Publish Docker image
on: on:
schedule:
- cron: '30 2 * * *'
push: push:
branches: branches:
- main - main
@ -31,6 +29,7 @@ env:
jobs: jobs:
build-dockerhub: build-dockerhub:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true)
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout

@ -21,7 +21,7 @@ name: Mark stale issues and pull requests
on: on:
schedule: schedule:
- cron: '0 8 * * *' - cron: '0 8 * * 1'
jobs: jobs:
stale: stale:
@ -36,7 +36,7 @@ jobs:
with: with:
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} repo-token: ${{ secrets.BOT_GITHUB_TOKEN }}
days-before-stale: 60 days-before-stale: 60
days-before-close: 7 days-before-close: 305
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.' stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
stale-pr-message: 'This issue is stale because it has been open 60 days with no activity.' stale-pr-message: 'This issue is stale because it has been open 60 days with no activity.'
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.' close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'

Loading…
Cancel
Save