mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
OPEN-44 Tech | Enhancement | Update cla.yml for reusable job (#253)
Co-authored-by: Evgenii Kozlov <ubuphobos@gmail.com>
This commit is contained in:
parent
315f95624d
commit
f740d4059b
1 changed files with 5 additions and 33 deletions
38
.github/workflows/cla.yml
vendored
38
.github/workflows/cla.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: "CLA Assistant"
|
||||
name: "CLA Check"
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
|
@ -10,36 +10,8 @@ permissions:
|
|||
contents: write
|
||||
pull-requests: write
|
||||
statuses: write
|
||||
|
||||
|
||||
jobs:
|
||||
CLAAssistant:
|
||||
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Get Org Members
|
||||
id: members
|
||||
uses: octokit/request-action@v2.x
|
||||
with:
|
||||
route: GET /orgs/anyproto/members?per_page=100
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ANY_CLA_TOKEN }}
|
||||
|
||||
- name: Extract Member Logins
|
||||
run: |
|
||||
echo '${{ steps.members.outputs.data }}' | jq -r '.[].login' | tr '\n' ',' > members.txt
|
||||
echo "dependabot" >> members.txt
|
||||
echo "members=$(cat members.txt)" >> "$GITHUB_ENV"
|
||||
|
||||
- name: CLA Assistant
|
||||
uses: contributor-assistant/github-action@v2.3.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
PERSONAL_ACCESS_TOKEN: ${{ secrets.ANY_CLA_TOKEN }}
|
||||
with:
|
||||
custom-notsigned-prcomment: '<br/>Thank you for your pull request, we really appreciate it!<br/><br/>Please sign our [Contributor License Agreement](https://github.com/anyproto/open/blob/main/templates/CLA.md) before we can accept your contribution.<br/>You can sign the CLA by simply commenting on this pull request with the following text.<br/>'
|
||||
path-to-document: "https://github.com/anyproto/open/blob/main/templates/CLA.md"
|
||||
remote-organization-name: "anyproto"
|
||||
remote-repository-name: "cla"
|
||||
branch: "main"
|
||||
path-to-signatures: "signatures.json"
|
||||
allowlist: ${{ env.members }}
|
||||
cla-check:
|
||||
uses: anyproto/open/.github/workflows/cla.yml@main
|
||||
secrets: inherit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue