From 926bd04b02aca4dd22b965b9d8e8fb270de0276c Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Tue, 18 Jul 2023 19:12:39 -0700 Subject: [PATCH] Update update.yaml --- .github/workflows/update.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml index bbcd5fc..7b40eff 100644 --- a/.github/workflows/update.yaml +++ b/.github/workflows/update.yaml @@ -3,14 +3,14 @@ # separate terms of service, privacy policy, and support # documentation. - name: Update database + on: push: branches: - main schedule: - - cron: '0 14 * * 1-5' # Every workday at 14:00 UTC + - cron: '0 */3 * * *' # Every 3 hours - cron: '0 0 * * 0' # Once a week, at 00:00 UTC jobs: @@ -18,8 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - + - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 - uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603 - name: Install dependencies @@ -30,5 +29,5 @@ jobs: run: dart run bin/dart_triage_updater.dart --update issues,pullrequests --api-key=${{ secrets.API_KEY }} - name: Update googlers - if: github.event.schedule != '0 14 * * 1-5' + if: github.event.schedule == '0 0 * * 0' run: dart run bin/dart_triage_updater.dart --update googlers --api-key=${{ secrets.API_KEY }}