From 46258edbd0cd728ea2f2130a54250a54be0f4f47 Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Tue, 22 Oct 2024 15:07:57 +0200 Subject: [PATCH] [ci] GitHub Secrets can not be access from Pull Requests, see: https://github.com/eXist-db/exist/settings/secrets/actions --- .github/workflows/ci-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 349f8204b73..ea200131552 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -20,6 +20,7 @@ jobs: timeout-minutes: 60 dependencies: name: Dependency checks + if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/develop' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -66,7 +67,7 @@ jobs: if: ${{ matrix.os == 'ubuntu-latest' }} run: ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd -V -B -q -T 1C install javadoc:javadoc -DskipTests -D'dependency-check.skip' -D'license.skip' --projects '!exist-distribution,!exist-installer' --also-make - name: Maven Code Coverage (Develop branch on Linux only) - if: ${{ github.ref == 'refs/heads/develop' && matrix.os == 'ubuntu-latest' }} + if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/develop' && matrix.os == 'ubuntu-latest' }} env: CI_NAME: github BRANCH_NAME_OR_REF: ${{ github.head_ref || github.ref }}