From 1dae76c6222758bbf5eeaebb943eac06bfbc4b16 Mon Sep 17 00:00:00 2001 From: Cristian Pufu Date: Mon, 13 Nov 2023 09:59:57 +0200 Subject: [PATCH] Fix pull_request event --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a687eb0..b6f06b9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,8 @@ jobs: java-version: '17' - uses: actions/checkout@v3 with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.ref || github.ref }} - name: Cache SonarCloud packages uses: actions/cache@v3 with: