Update cla.yml
This commit is contained in:
14
.github/workflows/cla.yml
vendored
14
.github/workflows/cla.yml
vendored
@@ -16,12 +16,24 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
cla-check:
|
cla-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
# OPTIMIZATION: This logic is moved here.
|
||||||
|
# The job will only start if it's a PR update, OR a comment on a PR containing the magic words.
|
||||||
|
if: >
|
||||||
|
github.event_name == 'pull_request_target' ||
|
||||||
|
(
|
||||||
|
github.event_name == 'issue_comment' &&
|
||||||
|
github.event.issue.pull_request &&
|
||||||
|
(
|
||||||
|
github.event.comment.body == 'recheck' ||
|
||||||
|
github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA'
|
||||||
|
)
|
||||||
|
)
|
||||||
steps:
|
steps:
|
||||||
- name: "CLA Assistant"
|
- name: "CLA Assistant"
|
||||||
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'
|
|
||||||
uses: cla-assistant/github-action@v2.5.0
|
uses: cla-assistant/github-action@v2.5.0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# Ensure this secret is set in your repo settings!
|
||||||
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ASSISTANT_TOKEN }}
|
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ASSISTANT_TOKEN }}
|
||||||
with:
|
with:
|
||||||
# Path to the CLA document(s)
|
# Path to the CLA document(s)
|
||||||
|
|||||||
Reference in New Issue
Block a user