Closed MafcoCinco closed 5 months ago
These actions are built on liquibase
docker image.
I had a look: docker run -it liquibase/liquibase:4.27.0 bash
, it has java preinstalled in /opt/java/openjdk
.
So in github actions this env should be restored.
- id: liquibase-update
env:
JAVA_HOME: /opt/java/openjdk
uses: liquibase-github-actions/update@v4.27.0
with:
.....
This way it works.
However there will be next problem: how to add a driver to class path?
Some drivers are already included, even postgre and oracle, so classpath
seems to be safe to omitted
hi @MafcoCinco, what @pokebadgerswithspoon said is correct. The github actions are based on the liquibase docker image, so java comes pre-installed. You should be able to remove setup-java entirely to resolve this issue.
The following action configuration is generating an error:
The error that I'm seeing in the GitHub action logs is as follows:
I added the following debugging steps after the Java 21 install step to verify that
JAVA_HOME
looked correctly configured. It yielded this output, which looks correct to me:Any suggestions a to how to proceed with debugging this issue? One additional note: I have tried with multiple versions of Java supported by GitHub, including Zulu, Oracle and Temurin. All suffered from the same error.