Skip to content

Commit f7d08e0

Browse files
authored
Merge pull request #51111 from Expensify/andrew-cla
[No QA]Update to use a shared CLA
2 parents 6d29c1c + 6f86f04 commit f7d08e0

File tree

1 file changed

+3
-33
lines changed

1 file changed

+3
-33
lines changed

.github/workflows/cla.yml

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,9 @@ on:
44
issue_comment:
55
types: [created]
66
pull_request_target:
7-
types: [opened, synchronize]
7+
types: [opened, closed, synchronize]
88

99
jobs:
1010
CLA:
11-
runs-on: ubuntu-latest
12-
# This job only runs for pull request comments or pull request target events (not issue comments)
13-
# It does not run for pull requests created by OSBotify
14-
if: ${{ github.event.issue.pull_request || (github.event_name == 'pull_request_target' && github.event.pull_request.user.login != 'OSBotify' && github.event.pull_request.user.login != 'imgbot[bot]') }}
15-
steps:
16-
- name: CLA comment check
17-
uses: actions-ecosystem/action-regex-match@9c35fe9ac1840239939c59e5db8839422eed8a73
18-
id: sign
19-
with:
20-
text: ${{ github.event.comment.body }}
21-
regex: '\s*I have read the CLA Document and I hereby sign the CLA\s*'
22-
- name: CLA comment re-check
23-
uses: actions-ecosystem/action-regex-match@9c35fe9ac1840239939c59e5db8839422eed8a73
24-
id: recheck
25-
with:
26-
text: ${{ github.event.comment.body }}
27-
regex: '\s*recheck\s*'
28-
- name: CLA Assistant
29-
if: ${{ steps.recheck.outputs.match != '' || steps.sign.outputs.match != '' || github.event_name == 'pull_request_target' }}
30-
# Version: 2.1.2-beta
31-
uses: cla-assistant/github-action@948230deb0d44dd38957592f08c6bd934d96d0cf
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
PERSONAL_ACCESS_TOKEN : ${{ secrets.CLA_BOTIFY_TOKEN }}
35-
with:
36-
path-to-signatures: '${{ github.repository }}/cla.json'
37-
path-to-document: 'https://github.com/${{ github.repository }}/blob/main/contributingGuides/CLA.md'
38-
branch: 'main'
39-
remote-organization-name: 'Expensify'
40-
remote-repository-name: 'CLA'
41-
lock-pullrequest-aftermerge: false
42-
allowlist: OSBotify,snyk-bot
11+
uses: Expensify/GitHub-Actions/.github/workflows/cla.yml@main
12+
secrets: inherit

0 commit comments

Comments
 (0)