mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-12-22 04:48:18 +00:00
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.
This commit is contained in:
parent
a0a0a4327f
commit
58b277c92b
1 changed files with 10 additions and 0 deletions
10
.github/workflows/example.yml
vendored
10
.github/workflows/example.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue