Repository navigation
46 lines (44 loc) · 1.63 KB
/
Copy pathcursor_register.yml
File metadata and controls
46 lines (44 loc) · 1.63 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
name: Cursor Register
on:
workflow_dispatch:
inputs:
number:
default: "2"
max_workers:
default: "1"
ingest_to_oneapi:
description: 'Ingest account tokens to OneAPI'
type: boolean
upload_artifact:
description: 'Upload account infos to artifact'
type: boolean
default: true
jobs:
build:
runs-on: windows-latest
env:
HIDE_ACCOUNT_INFO: "true"
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install requirements
run: |
pip3 install -r ./requirements.txt
- name: Run script for OneAPI
if: ${{ github.event.inputs.ingest_to_oneapi == 'true' }}
run: |
python3 ./cursor_register.py --oneapi --oneapi_url "${{ secrets.CURSOR_ONEAPI_URL }}" --oneapi_token "${{ secrets.CURSOR_ONEAPI_TOKEN }}" --oneapi_channel_url "${{ secrets.CURSOR_CHANNEL_URL }}" --number ${{ github.event.inputs.number }} --max_workers ${{ github.event.inputs.max_workers }}
- name: Run script for csv
if: ${{ github.event.inputs.ingest_to_oneapi == 'false' && github.event.inputs.upload_artifact == 'true' }}
run: |
python3 ./cursor_register.py --number ${{ github.event.inputs.number }} --max_workers ${{ github.event.inputs.max_workers }}
- name: Upload csv files to artifact
if: ${{ github.event.inputs.upload_artifact == 'true' }}
uses: actions/upload-artifact@v4
with:
name: "Account Info"
path: "*.csv"
retention-days: 1