From 04d7e4f4bbb1db88c26f75ea4404ef30bd0fd6c1 Mon Sep 17 00:00:00 2001 From: Fabio Niephaus Date: Thu, 16 Jan 2025 15:15:30 +0100 Subject: [PATCH] Skip steps that require a GDS token in PR builds. --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2642a1f..aa49c59 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -73,6 +73,8 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} components: ${{ matrix.components }} gds-token: ${{ matrix.set-gds-token && secrets.GDS_TOKEN || '' }} + # Skip in PR builds that require a GDS token (secrets are not available in PR runs) + if: github.event_name != 'pull_request' || !matrix.set-gds-token - name: Check environment run: | echo "GRAALVM_HOME: $GRAALVM_HOME" @@ -85,13 +87,14 @@ jobs: java --version java --version | grep "GraalVM" || exit 34 native-image --version - if: runner.os != 'Windows' + if: runner.os != 'Windows' && (github.event_name != 'pull_request' || !matrix.set-gds-token) - name: Check Windows environment run: | echo "GRAALVM_HOME: $env:GRAALVM_HOME" echo "JAVA_HOME: $env:JAVA_HOME" java --version native-image --version + if: runner.os == 'Windows' test-ce: # make sure the action works on a clean machine without building needs: test name: CE ${{ matrix.version }} + JDK${{ matrix.java-version }} on ${{ matrix.os }}