Skip to content

Commit d3ed8c9

Browse files
committed
fix: revert back to surpressing pull_request triggers and append debug output
1 parent f11398e commit d3ed8c9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,20 @@ 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
2221
build:
23-
if: github.event_name != 'push' || github.event.push.head.repo.full_name != github.event.push.base.repo.full_name
22+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
2423
strategy:
2524
matrix:
2625
os: [ubuntu-latest, macos-latest, windows-latest]
2726
jdk: [ 17, 21 ] # (open)JDK releases
2827
runs-on: ${{ matrix.os }}
2928

3029
steps:
30+
- name: Debug trigger conditions
31+
run: |
32+
echo "github.event_name=${{ github.event_name }}"
33+
echo "github.event.pull_request.head.repo.full_name=${{ github.event.pull_request.head.repo.full_name }}"
34+
echo "github.event.pull_request.base.repo.full_name=${{ github.event.pull_request.base.repo.full_name }}"
3135
- uses: actions/checkout@v4
3236
- name: Set up openJDK version
3337
uses: actions/setup-java@v4

0 commit comments

Comments
 (0)