File tree 1 file changed +27
-6
lines changed 1 file changed +27
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : ensure-service-team-labels
2
2
3
+ permissions :
4
+ issues : write
5
+
3
6
on :
4
7
schedule :
8
+ # Runs at 00:00 UTC every day
5
9
- cron : ' 0 0 * * *'
6
- workflow_dispatch : # allows manual trigger
7
-
8
- permissions :
9
- issues : write
10
-
10
+ workflow_dispatch :
11
+ workflow_call :
12
+
11
13
jobs :
12
14
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 }}
You can’t perform that action at this time.
0 commit comments