Skip to content

Commit

Permalink
Github context is not available in shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
holly-cummins committed Sep 16, 2022
1 parent e25fc8b commit 501a410
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/filter-jvm-tests-json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 501a410

Please sign in to comment.