From 9a4833b623152e7eb405850ab0907de2b9e043e1 Mon Sep 17 00:00:00 2001 From: Shuya Ma <87669292+shuyama1@users.noreply.github.com> Date: Tue, 22 Oct 2024 12:55:39 -0700 Subject: [PATCH] Schedule daily run for backfill labeler (#19887) * schedule daily run for back fill labeler * correct config file * handle defaults for input variables --- .github/workflows/backfill-issue-labels.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backfill-issue-labels.yml b/.github/workflows/backfill-issue-labels.yml index 22682a7619f..14e0cd1befb 100644 --- a/.github/workflows/backfill-issue-labels.yml +++ b/.github/workflows/backfill-issue-labels.yml @@ -13,6 +13,8 @@ on: dry_run: description: "Dry run (no changes will be made to issues)" type: boolean + schedule: + - cron: '0 7 * * *' # UTC 7AM (-7)-> 12AM PST jobs: backfill-tickets: @@ -30,6 +32,8 @@ jobs: - name: Run backfill env: GITHUB_TOKEN: ${{github.token}} + SINCE: ${{ inputs.since || '1973-01-01' }} + DRY_RUN: ${{ contains(inputs.dry_run, 'true') }} run: | cd repo/tools/issue-labeler - go run . -backfill-date=${{inputs.since}} -backfill-dry-run=${{inputs.dry_run}} -logtostderr=true + go run . -backfill-date=${{env.SINCE}} -backfill-dry-run=${{env.DRY_RUN}} -logtostderr=true