File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 name : Apply Triage Label
88 runs-on : ubuntu-latest
99 # if: github.repository == 'microsoft/vscode-python' && github.event.labels.length == 0
10- if : github.event.issue.labels.length == 0 && github.event.issue.assignees.length == 0
1110 steps :
12- - name : Print day and week
11+ - name : Debug
1312 run : |
1413 echo "${{github.event.issue.labels.length}}"
1514 echo "${{github.event.issue.assignees.length}}"
1615 shell : bash
16+ - name : Labels Count
17+ id : labels
18+ env :
19+ ISSUE_LABELS : ${{toJson(github.event.issue.labels))}}
20+ run : |
21+ echo ::set-output name=count::$(node -p -e "JSON.parse(process.env.ISSUE_LABELS).length")
22+ shell : bash
23+ - name : Assignees Count
24+ id : assignees
25+ env :
26+ ISSUE_ASSIGNEES : ${{toJson(github.event.issue.assignees))}}
27+ run : |
28+ echo ::set-output name=count::$(node -p -e "JSON.parse(process.env.ISSUE_ASSIGNEES).length")
29+ shell : bash
30+ - name : Print labels and assignees
31+ run : |
32+ echo ${{steps.labels.outputs.count}}
33+ echo ${{steps.assignees.outputs.count}}
34+ shell : bash
1735 - uses : actions/checkout@v2
1836 - name : Day of week
1937 id : day
You can’t perform that action at this time.
0 commit comments