Skip to content

Commit d3cb401

Browse files
committed
ci: 💚 don't run cla assistant on fork repositories
1 parent d1219f5 commit d3cb401

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/cla.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: "CLA Assistant"
22
on:
33
issue_comment:
4-
types: [ created ]
4+
types: [created]
55
pull_request_target:
6-
types: [ opened,closed,synchronize ]
6+
types: [opened, closed, synchronize]
77

88
permissions:
99
actions: write
@@ -14,14 +14,16 @@ permissions:
1414
jobs:
1515
CLAAssistant:
1616
runs-on: ubuntu-latest
17+
# Only run this workflow on the main repository (continuedev/continue)
18+
if: github.repository == 'continuedev/continue'
1719
steps:
1820
- name: "CLA Assistant"
1921
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'
2022
uses: contributor-assistant/github-action@v2.6.1
2123
env:
2224
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2325
with:
24-
path-to-signatures: 'signatures/version1/cla.json'
25-
path-to-document: 'https://github.com/continuedev/continue/blob/main/docs/docs/CLA.md'
26+
path-to-signatures: "signatures/version1/cla.json"
27+
path-to-document: "https://github.com/continuedev/continue/blob/main/docs/docs/CLA.md"
2628
branch: cla-signatures
27-
allowlist: dependabot[bot]
29+
allowlist: dependabot[bot]

0 commit comments

Comments
 (0)