Skip to content

Commit 2839742

Browse files
committed
fix: try avoiding double CI runs
1 parent 9333d57 commit 2839742

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/gradle.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name: Build & Tests
99

1010
on:
1111
push:
12-
branches: [ main, development ]
12+
branches: [ main ]
1313
pull_request:
1414
branches: [ main, development ]
1515
workflow_dispatch:
@@ -18,6 +18,8 @@ env:
1818
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
1919

2020
jobs:
21+
# avoid double CI runs on push and PR, from https://github.com/orgs/community/discussions/57827
22+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
2123
build:
2224
strategy:
2325
matrix:

0 commit comments

Comments
 (0)