Simplify CLA workflow identity (#811)
This commit is contained in:
@@ -20,12 +20,12 @@ permissions:
|
||||
|
||||
jobs:
|
||||
CLA:
|
||||
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')))
|
||||
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
|
||||
- name: CLA
|
||||
uses: ultralytics/actions/cla@main
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@ Checks every pull request commit author against the shared signature ledger in
|
||||
`ultralytics/cla` and maintains one status comment on the pull request.
|
||||
|
||||
```yaml
|
||||
name: CLA Assistant
|
||||
name: CLA
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
group: cla-${{ github.event.pull_request.number || github.event.issue.number }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: CLA Assistant
|
||||
- name: CLA
|
||||
uses: ultralytics/actions/cla@main
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user