ci: restrict cla workflow to upstream repo
This commit is contained in:
parent
51f72186a5
commit
5c074e6fe8
13
.github/workflows/cla.yml
vendored
13
.github/workflows/cla.yml
vendored
@ -15,8 +15,11 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
cla-check:
|
cla-check:
|
||||||
if: |
|
if: |
|
||||||
github.event_name == 'issue_comment' ||
|
github.repository == 'Wei-Shaw/sub2api' &&
|
||||||
(github.event_name == 'pull_request_target' && github.event.action != 'closed')
|
(
|
||||||
|
github.event_name == 'issue_comment' ||
|
||||||
|
(github.event_name == 'pull_request_target' && github.event.action != 'closed')
|
||||||
|
)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: "CLA Assistant"
|
- name: "CLA Assistant"
|
||||||
@ -45,7 +48,11 @@ jobs:
|
|||||||
custom-allsigned-prcomment: "All contributors have signed the CLA. ✅"
|
custom-allsigned-prcomment: "All contributors have signed the CLA. ✅"
|
||||||
|
|
||||||
cla-lock:
|
cla-lock:
|
||||||
if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true
|
if: |
|
||||||
|
github.repository == 'Wei-Shaw/sub2api' &&
|
||||||
|
github.event_name == 'pull_request_target' &&
|
||||||
|
github.event.action == 'closed' &&
|
||||||
|
github.event.pull_request.merged == true
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: "Lock merged PR"
|
- name: "Lock merged PR"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user