Issue Labeler Backfill #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Issue Labeler Backfill | |
permissions: | |
issues: write | |
on: | |
workflow_dispatch: | |
inputs: | |
since: | |
description: "The date to backfill tickets since in YYYY-MM-DD format" | |
required: true | |
dry_run: | |
description: "Whether to skip actually updating issues" | |
type: boolean | |
jobs: | |
backfill-tickets: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | |
with: | |
repository: GoogleCloudPlatform/magic-modules | |
path: repo | |
- name: Set up Go | |
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0 | |
with: | |
go-version: '^1.19.1' | |
- name: Run backfill | |
env: | |
GITHUB_TOKEN: ${{github.token}} | |
run: | | |
cd repo/tools/issue-labeler | |
go run . -backfill-date=${{inputs.since}} -backfill-dry-run=${{inputs.dry_run}} -logtostderr=true |