32 lines
927 B
YAML
32 lines
927 B
YAML
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
|
|
|
|
name: "Ultralytics CLA"
|
|
author: "Ultralytics"
|
|
description: "Check pull request contributors against the central Ultralytics CLA signature ledger"
|
|
branding:
|
|
icon: "check-circle"
|
|
color: "green"
|
|
inputs:
|
|
github-token:
|
|
description: "GitHub token for pull request comments and workflow reruns"
|
|
required: true
|
|
cla-token:
|
|
description: "Token with read/write access to the ultralytics/cla signature ledger"
|
|
required: true
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- uses: ultralytics/actions/setup-uv@main
|
|
with:
|
|
ignore-empty-workdir: true
|
|
|
|
- name: Check CLA
|
|
env:
|
|
GITHUB_TOKEN: ${{ inputs.github-token }}
|
|
CLA_TOKEN: ${{ inputs.cla-token }}
|
|
PYTHONPATH: ${{ github.action_path }}/..
|
|
run: |
|
|
cd "$GITHUB_ACTION_PATH/.."
|
|
uv run --locked --script actions/cla.py
|
|
shell: bash
|