From 8eb3a0dfdea197f164f052d1b897283f3a7ef73e Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Wed, 16 Oct 2024 04:54:41 -0700 Subject: [PATCH] CI: Only install SBT if not present on Ubuntu image --- .github/workflows/esmeta-test262.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/esmeta-test262.yml b/.github/workflows/esmeta-test262.yml index 1198567691..5959370879 100644 --- a/.github/workflows/esmeta-test262.yml +++ b/.github/workflows/esmeta-test262.yml @@ -16,6 +16,8 @@ jobs: java-version: 17 - name: Setup SBT uses: sbt/setup-sbt@v1 + if: ${{ hashFiles('/usr/bin/sbt') == '' }} + # https://www.peterbe.com/plog/how-to-run-workflow-step-if-a-file-exists - name: Add to PATH shell: bash run: |