From 74ebaacc41cd1b5441046eacc91e62a1f1049d5a Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Fri, 2 Feb 2024 19:55:15 -0600 Subject: [PATCH] feat: Add Java install if using act For some reason, I need to pin the Java install when using act. This is not needed when using the GitHub Actions runner, so add an escape clause to only run this extra step when using act. --- .github/workflows/example.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index 3d56335..01e7fae 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -37,6 +37,11 @@ jobs: - run: npm ci - run: npm run build - run: npm run package + - uses: actions/setup-java@v2 + if: ${{ env.ACT }} + with: + java-version: 11 + distribution: zulu - uses: ./ with: version: ${{ matrix.nextflow_version }} @@ -55,5 +60,10 @@ jobs: - run: npm ci - run: npm run build - run: npm run package + - uses: actions/setup-java@v2 + if: ${{ env.ACT}} + with: + java-version: 11 + distribution: zulu - uses: ./ - run: nextflow -v