Skip to content

Commit 487408f

Browse files
authored
Try to fix workflow (#11080)
1 parent 3d594d1 commit 487408f

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/labeler-train.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,19 @@ jobs:
6868
# threshold: 0.40
6969

7070
build-predictor:
71-
uses: dotnet/issue-labeler/.github/workflows/build-predictor.yml@68a3df3b6444ec3e2a37af4d5e2569df1d45201d # v1.0.1
71+
permissions:
72+
issues: read
73+
pull-requests: read
74+
actions: write
75+
uses: dotnet/issue-labeler/.github/workflows/build-predictor.yml@f0c098669828a134c0313adf3f58c1909e555d86 # v1.0.1
7276

7377
labeler-download-issues:
7478
needs: build-predictor
7579
if: ${{ inputs.download_issues }}
7680
permissions:
7781
issues: read
7882
actions: write
79-
uses: dotnet/issue-labeler/.github/workflows/download-issues.yml@68a3df3b6444ec3e2a37af4d5e2569df1d45201d # v1.0.1
83+
uses: dotnet/issue-labeler/.github/workflows/download-issues.yml@f0c098669828a134c0313adf3f58c1909e555d86 # v1.0.1
8084
with:
8185
data_cache_key: ${{ inputs.cache_key_suffix }}
8286
issue_limit: ${{ inputs.data_limit && fromJSON(inputs.data_limit) || 0 }}
@@ -87,15 +91,15 @@ jobs:
8791
if: ${{ inputs.train_issues && always() && (needs.labeler-download-issues.result == 'success' || needs.labeler-download-issues.result == 'skipped') }}
8892
permissions:
8993
actions: write
90-
uses: dotnet/issue-labeler/.github/workflows/train-issues.yml@68a3df3b6444ec3e2a37af4d5e2569df1d45201d # v1.0.1
94+
uses: dotnet/issue-labeler/.github/workflows/train-issues.yml@f0c098669828a134c0313adf3f58c1909e555d86 # v1.0.1
9195
with:
9296
data_cache_key: ${{ inputs.cache_key_suffix }}
9397
model_cache_key: ${{ inputs.cache_key_suffix }}
9498

9599
labeler-test-issues:
96100
needs: [labeler-download-issues, labeler-train-issues]
97101
if: ${{ inputs.test_issues && always() && (needs.labeler-download-issues.result == 'success' || needs.labeler-download-issues.result == 'skipped') && (needs.labeler-train-issues.result == 'success' || needs.labeler-train-issues.result == 'skipped') }}
98-
uses: dotnet/issue-labeler/.github/workflows/test-issues.yml@68a3df3b6444ec3e2a37af4d5e2569df1d45201d # v1.0.1
102+
uses: dotnet/issue-labeler/.github/workflows/test-issues.yml@f0c098669828a134c0313adf3f58c1909e555d86 # v1.0.1
99103
with:
100104
model_cache_key: ${{ inputs.cache_key_suffix }}
101105
label_prefix: "area-"
@@ -107,7 +111,7 @@ jobs:
107111
permissions:
108112
pull-requests: read
109113
actions: write
110-
uses: dotnet/issue-labeler/.github/workflows/download-pulls.yml@68a3df3b6444ec3e2a37af4d5e2569df1d45201d # v1.0.1
114+
uses: dotnet/issue-labeler/.github/workflows/download-pulls.yml@f0c098669828a134c0313adf3f58c1909e555d86 # v1.0.1
111115
with:
112116
data_cache_key: ${{ inputs.cache_key_suffix }}
113117
pull_limit: ${{ inputs.data_limit && fromJSON(inputs.data_limit) || 0 }}
@@ -119,15 +123,15 @@ jobs:
119123
if: ${{ inputs.train_pulls && always() && (needs.labeler-download-pulls.result == 'success' || needs.labeler-download-pulls.result == 'skipped') }}
120124
permissions:
121125
actions: write
122-
uses: dotnet/issue-labeler/.github/workflows/train-pulls.yml@68a3df3b6444ec3e2a37af4d5e2569df1d45201d # v1.0.1
126+
uses: dotnet/issue-labeler/.github/workflows/train-pulls.yml@f0c098669828a134c0313adf3f58c1909e555d86 # v1.0.1
123127
with:
124128
data_cache_key: ${{ inputs.cache_key_suffix }}
125129
model_cache_key: ${{ inputs.cache_key_suffix }}
126130

127131
labeler-test-pulls:
128132
needs: [labeler-download-pulls, labeler-train-pulls]
129133
if: ${{ inputs.test_pulls && always() && (needs.labeler-download-pulls.result == 'success' || needs.labeler-download-pulls.result == 'skipped') && (needs.labeler-train-pulls.result == 'success' || needs.labeler-train-pulls.result == 'skipped') }}
130-
uses: dotnet/issue-labeler/.github/workflows/test-pulls.yml@68a3df3b6444ec3e2a37af4d5e2569df1d45201d # v1.0.1
134+
uses: dotnet/issue-labeler/.github/workflows/test-pulls.yml@f0c098669828a134c0313adf3f58c1909e555d86 # v1.0.1
131135
with:
132136
model_cache_key: ${{ inputs.cache_key_suffix }}
133137
label_prefix: "area-"

0 commit comments

Comments
 (0)