-
Notifications
You must be signed in to change notification settings - Fork 276
55 lines (52 loc) · 1.68 KB
/
classifier-runner.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: 'Classifier: Runner'
permissions:
id-token: write
contents: read
on:
schedule:
- cron: 0 * * * *
repository_dispatch:
types: [trigger_classifier_runner]
workflow_dispatch:
jobs:
main:
runs-on: ubuntu-latest
environment: insider
steps:
- uses: azure/login@v2
with:
client-id: ${{ vars.AZURE_CLIENT_ID }}
tenant-id: ${{ vars.AZURE_TENANT_ID }}
allow-no-subscriptions: true
- name: Checkout Actions
uses: actions/checkout@v4
with:
repository: 'microsoft/vscode-github-triage-actions'
ref: stable
path: ./actions
- name: Install Actions
run: npm install --production --prefix ./actions
- name: Install Additional Dependencies
# Pulls in a bunch of other packages that arent needed for the rest of the actions
run: npm install @azure/storage-blob@12
- name: 'Run Classifier: Scraper'
uses: ./actions/classifier/apply/fetch-issues
with:
from: 130
until: 5
blobContainerName: vscode-jupyter-models
- name: Set up Python 3.7
uses: actions/setup-python@v5
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade numpy scipy scikit-learn joblib nltk
- name: 'Run Classifier: Generator'
run: python ./actions/classifier/apply/generate-labels/main.py --debug
- name: 'Run Classifier: Labeler'
uses: ./actions/classifier/apply/apply-labels
with:
config-path: classifier
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}