generated from ultralytics/template
-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathaction.yml
More file actions
76 lines (71 loc) · 2.46 KB
/
action.yml
File metadata and controls
76 lines (71 loc) · 2.46 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
67
68
69
70
71
72
73
74
75
76
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
name: "Ultralytics CLA"
description: "Checks if contributors have signed the Ultralytics Contributor License Agreement"
inputs:
github-token:
description: "GitHub token"
required: true
cla_repository:
description: "GitHub repository name for storing CLA signatures (including organization, e.g., 'org/repo')"
required: true
cla_branch:
description: "Branch to store CLA signatures"
required: true
default: "cla-signatures"
cla_signatures_path:
description: "Path to the JSON file containing CLA signatures"
required: true
default: "signatures/version1/cla.json"
cla_document_url:
description: "URL to the CLA document"
required: true
default: "https://docs.ultralytics.com/help/CLA"
allowlist:
description: "Comma-separated list of users/bots to ignore"
required: false
default: "dependabot[bot],github-actions,bot*"
sign_comment:
description: "Comment to trigger CLA signing"
required: true
default: "I have read the CLA Document and I sign the CLA"
allsigned_comment:
description: "Comment to post when all contributors have signed"
required: true
default: "All Contributors have signed the CLA. ✅"
openai_api_key:
description: "OpenAI API Key"
required: false
openai_model:
description: "OpenAI Model"
required: false
default: "gpt-4o"
runs:
using: "composite"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install -q git+https://github.com/ultralytics/actions@cla-branch
# pip install -q ultralytics-actions
ultralytics-actions-info
shell: bash
- name: Check CLA
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
CLA_REPOSITORY: ${{ inputs.cla_repository }}
CLA_BRANCH: ${{ inputs.cla_branch }}
CLA_SIGNATURES_PATH: ${{ inputs.cla_signatures_path }}
CLA_DOCUMENT_URL: ${{ inputs.cla_document_url }}
ALLOWLIST: ${{ inputs.allowlist }}
SIGN_COMMENT: ${{ inputs.sign_comment }}
ALLSIGNED_COMMENT: ${{ inputs.allsigned_comment }}
OPENAI_API_KEY: ${{ inputs.openai_api_key }}
OPENAI_MODEL: ${{ inputs.openai_model }}
run: ultralytics-actions-check-cla
shell: bash