File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ permissions:
8
8
issues : write
9
9
10
10
on :
11
- workflow_dispatch :
12
11
pull_request :
13
12
branches :
14
13
- main
@@ -29,17 +28,11 @@ jobs:
29
28
REQUIRES_AUTOFIX_LABEL : " Autofix Validation Required"
30
29
DOES_NOT_REQUIRE_AUTOFIX_LABEL : " No Autofix Validation Required"
31
30
32
- runs-on : ubuntu-latest
31
+ runs-on : ubuntu-l atest
33
32
steps :
34
- - name : Save PR number
35
- run : echo "${PR_NUMBER}" > pr_number.txt
36
- shell : bash
37
- env :
38
- PR_NUMBER : ${{ github.event.number }}
39
-
40
33
- name : Check existing labels
41
34
shell : bash
42
- run :
35
+ run : |
43
36
gh api "repos/${GITHUB_REPOSITORY}/issues/${PR_NUMBER}/labels" | jq -r '.[].name' > labels.txt
44
37
45
38
if grep -q -x -e "${REQUIRES_AUTOFIX_LABEL}" labels.txt || grep -q -x -e "${DOES_NOT_REQUIRE_AUTOFIX_LABEL}" labels.txt; then
You can’t perform that action at this time.
0 commit comments