-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (62 loc) · 2.14 KB
/
sign-company.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
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Sign CLA for Company Contributor
on:
workflow_dispatch:
inputs:
cla:
description: CLA
type: choice
options:
- https://docs.opendp.org/en/stable/_static/opendp-cla-company-1.0.0.pdf
required: true
name:
description: Your Name
type: string
required: true
attestation:
description: I AGREE to the above CLA
type: boolean
required: true
company:
description: Company
type: string
required: true
representative_name:
description: Company Representative Name
type: string
required: true
representative_attestation:
description: CO. REP. AGREES to the above CLA
type: boolean
required: true
jobs:
sign:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
# cache: pip
- name: Record signature
run: |
python tools/cla_tool.py sign-com \
-g "${{ github.actor }}" \
-u "${{ github.event.inputs.cla }}" \
-n "${{ github.event.inputs.name }}" \
-a "${{ github.event.inputs.attestation == 'true' && 'I AGREE' || 'I DO NOT AGREE' }}" \
-X "${{ github.event.inputs.company }}" \
-N "${{ github.event.inputs.representative_name }}" \
-A "${{ github.event.inputs.representative_attestation == 'true' && 'I AGREE' || 'I DO NOT AGREE' }}"
- name: Update cla-bot config
run: |
python tools/cla_tool.py gen-conf
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
branch: sign-company/${{ github.actor }}
delete-branch: true
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit-message: Sign CLA for company contributor @${{ github.actor }}
title: Sign CLA for company contributor @${{ github.actor }}