-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Expand file tree
/
Copy pathissue_helper.yml
More file actions
66 lines (55 loc) · 1.47 KB
/
issue_helper.yml
File metadata and controls
66 lines (55 loc) · 1.47 KB
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
56
57
58
59
60
61
62
63
64
65
66
# Release status statistics
name: IssueHelper
trigger:
branches:
exclude:
- '*'
pr:
branches:
exclude:
- '*'
schedules:
- cron: "0 1-9 * * *"
displayName: SDK Issue Statistics
branches:
include:
- main
always: true
variables:
- group: Azure SDK Auto Release Pipeline Secrets
- group: SDK Release Helper
jobs:
- job: IssueHelper 3.9
displayName: IssueHelper Python
timeoutInMinutes: 30
strategy:
maxParallel: 3
pool:
name: azsdk-pool
vmImage: 'ubuntu-22.04'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.9'
addToPath: true
architecture: 'x64'
- bash: |
script_path=$(pwd)/scripts/issue_helper
cd ..
git config --global user.email "IssueHelper"
git config --global user.name "IssueHelper"
# clone(REPO: https://github.com/Azure/azure-sdk-for-python.git, USR_NAME: Azure, USR_TOKEN: xxxxxxxxxxxxx)
mkdir file-storage
git clone ${FILE_REPO:0:8}$(USR_NAME):$(Yuchao-GitToken)@${FILE_REPO:8} $(pwd)/file-storage
# import env variable
export TOKEN=$(Yuchao-GitToken)
export LANGUAGE=$(RUN_LANGUAGE)
# create virtual env
python -m venv venv-sdk
source venv-sdk/bin/activate
python -m pip install -r $script_path/requirement.txt
# checkout the target branch
cd file-storage
git checkout issue-helper
# run
python $script_path/main.py