Skip to content

Commit 777ceb5

Browse files
committed
fix: don't run on forks or dependabot PRs
1 parent 31fb056 commit 777ceb5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/orca.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@ concurrency:
1212

1313
jobs:
1414
orca:
15+
# do not run on forks or dependabot PRs
16+
if: |
17+
github.event_name == 'push' ||
18+
(github.event_name == 'pull_request' &&
19+
github.event.pull_request.head.repo.full_name == github.repository &&
20+
github.actor != 'dependabot[bot]')
1521
uses: JeffersonLab/acro/.github/workflows/orca.yml@main
1622
with:
17-
ref_var: REF_COATJAVA
18-
pipeline_timeout: 3600
23+
ref_var: REF_COATJAVA # controls which git ref variable gets set to the triggering ref
24+
pipeline_timeout: 3600 # maximum time to allow the pipeline to run (seconds)
1925
secrets:
2026
orca_project_id: ${{ secrets.ORCA_PROJECT_ID }}
2127
orca_project_token: ${{ secrets.ORCA_PROJECT_TOKEN }}

0 commit comments

Comments
 (0)