Skip to content

Commit a644540

Browse files
authored
put the correct path
1 parent 12432a2 commit a644540

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/test_main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@ jobs:
2929
run: |
3030
mvn clean install org.apache.maven.plugins:maven-shade-plugin:3.2.4:shade -Dshade.mainClass=io.bioimage.modelrunner.pytorch.PytorchInterface
3131
32+
- name: Write Version to File
33+
run: |
34+
echo "$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" > version.txt
35+
echo "JAR_PATH=target/dl-modelrunner-$(cat version.txt).jar" >> $GITHUB_ENV
36+
shell: bash
3237

3338
- name: Run Specific Class (Unix)
3439
shell: bash
3540
run: |
36-
java -cp $JAR_PATH io.bioimage.modelrunner.pytorch.PytorchInterface
41+
java -cp $JAR_PATH io.bioimage.modelrunner.pytorch.PytorchInterface

0 commit comments

Comments
 (0)