Route CLA concurrency through actionable jobs (#809)
This commit is contained in:
@@ -4,8 +4,6 @@
|
||||
# This workflow automatically requests Pull Requests (PR) authors to sign the Ultralytics CLA before PRs can be merged
|
||||
|
||||
name: CLA Assistant
|
||||
concurrency:
|
||||
group: cla-${{ github.event.pull_request.number || github.event.issue.number }}
|
||||
on:
|
||||
issue_comment:
|
||||
types:
|
||||
@@ -22,11 +20,12 @@ permissions:
|
||||
|
||||
jobs:
|
||||
CLA:
|
||||
if: github.repository == 'ultralytics/actions' && (github.event_name != 'issue_comment' || github.event.issue.pull_request)
|
||||
if: github.repository == 'ultralytics/actions' && (github.event_name == 'pull_request_target' || (github.event.issue.pull_request && (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I sign the CLA')))
|
||||
concurrency:
|
||||
group: cla-${{ github.event.pull_request.number || github.event.issue.number }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: CLA Assistant
|
||||
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I sign the CLA') || github.event_name == 'pull_request_target'
|
||||
uses: ultralytics/actions/cla@main
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
+3
-4
@@ -5,8 +5,6 @@ Checks every pull request commit author against the shared signature ledger in
|
||||
|
||||
```yaml
|
||||
name: CLA Assistant
|
||||
concurrency:
|
||||
group: cla-${{ github.event.pull_request.number || github.event.issue.number }}
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
@@ -19,11 +17,12 @@ permissions:
|
||||
|
||||
jobs:
|
||||
CLA:
|
||||
if: github.event_name != 'issue_comment' || github.event.issue.pull_request
|
||||
if: github.event_name == 'pull_request_target' || (github.event.issue.pull_request && (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I sign the CLA'))
|
||||
concurrency:
|
||||
group: cla-${{ github.event.pull_request.number || github.event.issue.number }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: CLA Assistant
|
||||
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I sign the CLA') || github.event_name == 'pull_request_target'
|
||||
uses: ultralytics/actions/cla@main
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user