From 5cebc12640f5f9328b522237040e8bc46934f6d3 Mon Sep 17 00:00:00 2001 From: Julian Haas Date: Tue, 26 Mar 2024 19:24:03 +0100 Subject: [PATCH] exclude act steps when on github --- .github/workflows/scala.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml index 1d58ea2..58b6709 100644 --- a/.github/workflows/scala.yml +++ b/.github/workflows/scala.yml @@ -26,7 +26,10 @@ jobs: java-version: '17' distribution: 'temurin' cache: 'sbt' - - run: curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup --yes --install-dir /usr/bin --apps sbt + - run: curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup --yes --install-dir ~/.local/bin --apps sbt + if: ${{ env.ACT }} + - run: echo "$HOME/.local/bin" >> $GITHUB_PATH + if: ${{ env.ACT }} - name: Run tests run: sbt test # Optional: This step uploads information to the GitHub dependency graph and unblocking Dependabot alerts for the repository