From 6b4f85d1d2e91fb18f3e609eb1d563ccc587cd66 Mon Sep 17 00:00:00 2001 From: Holly Cummins Date: Fri, 16 Sep 2022 17:17:29 +0100 Subject: [PATCH] Github context is not available in shell scripts --- .github/filter-jvm-tests-json.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/filter-jvm-tests-json.sh b/.github/filter-jvm-tests-json.sh index b0439a96b2874f..9ba5707a296393 100755 --- a/.github/filter-jvm-tests-json.sh +++ b/.github/filter-jvm-tests-json.sh @@ -7,8 +7,7 @@ BASEDIR=$(dirname "$0") # See https://stackoverflow.com/questions/65384420/how-to-make-a-github-action-matrix-element-conditional -# ${{ github.repository }} is an access to the github context - see https://docs.github.com/en/actions/learn-github-actions/contexts#github-context -repoName=$(echo '${{ github.repository }}') +repoName=${GITHUB_REPOSITORY} if [[ $repoName == "quarkusio/quarkus" ]] then