Skip to content

Commit 4bbc44e

Browse files
authored
Add job to create service-team labels (#20853)
* add job to create service-team labels * add job to create service-team labels * update types
1 parent 1ad54e7 commit 4bbc44e

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed
Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,34 @@
11
name: ensure-service-team-labels
22

3+
permissions:
4+
issues: write
5+
36
on:
47
schedule:
8+
# Runs at 00:00 UTC every day
59
- cron: '0 0 * * *'
6-
workflow_dispatch: # allows manual trigger
7-
8-
permissions:
9-
issues: write
10-
10+
workflow_dispatch:
11+
workflow_call:
12+
1113
jobs:
1214
modify-labels:
13-
uses: GoogleCloudPlatform/magic-modules/.github/workflows/ensure-service-team-labels.yml@main
15+
if: github.repository == 'GoogleCloudPlatform/magic-modules' || github.repository == 'hashicorp/terraform-provider-google'
16+
runs-on: ubuntu-22.04
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
steps:
20+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.2
21+
with:
22+
repository: GoogleCloudPlatform/magic-modules
23+
- name: Set up Go
24+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
25+
with:
26+
go-version: '^1.23.0'
27+
- name: Build issue-labeler
28+
run: |
29+
cd tools/issue-labeler
30+
go build
31+
- name: Run issue-labeler
32+
run: |
33+
cd tools/issue-labeler
34+
./issue-labeler setup-labels ${{ github.repository }}

0 commit comments

Comments
 (0)