Skip to content

Commit c3a520e

Browse files
committed
test
1 parent f0584ce commit c3a520e

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/assignIssue.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,31 @@ jobs:
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

0 commit comments

Comments
 (0)