-
Notifications
You must be signed in to change notification settings - Fork 1.8k
39 lines (36 loc) · 1.06 KB
/
backfill-issue-labels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
default: '1973-01-01'
schedule:
- cron: '0 7 * * *' # UTC 7AM (-7)-> 12AM PST
jobs:
backfill-tickets:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
repository: GoogleCloudPlatform/magic-modules
path: magic-modules
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '^1.19.1'
- name: Build issue-labeler binary
run: |
cd magic-modules/tools/issue-labeler
go build .
- name: Run backfill
env:
GITHUB_TOKEN: ${{github.token}}
SINCE: ${{ inputs.since || '1973-01-01' }}
run: |
cd magic-modules/tools/issue-labeler
./issue-labeler backfill-issue-labels --since=${{env.SINCE}}