Skip to content

Commit

Permalink
Schedule daily run for backfill labeler (#19887)
Browse files Browse the repository at this point in the history
* schedule daily run for back fill labeler

* correct config file

* handle defaults for input variables
  • Loading branch information
shuyama1 authored Oct 22, 2024
1 parent 3ab8b6c commit 9a4833b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/backfill-issue-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 9a4833b

Please sign in to comment.