it looks that the permission for liquibase-github-actions/update/v4.29.2/update.sh should be changed with chmod 755 in advance before commiting into the github repo, then this binary is runnable for the liquibase user. otherwise, it will fail with the above error message. not sure if there is a way to contact the maintainer to make change? I send out an email without the response.
@admah thanks so much. I don’t have the public link for the error.
but I managed to find the issue.
here is the permission for update.sh, I think I expect this file permission needs to be executable by all. otherwise, the docker image created using this file can only be executed by root.
If I run git clone GitHub - liquibase-github-actions/update: Official GitHub Action to run Liquibase Update, the file permission for update.sh is 755. still not sure why the gitaction pull will create the file update.sh with permission of 750? can we fix it with the following change in Dockerfile? not sure if I can modify the Dockerfile dynamically to get gitaction work or has to wait for the owner to make such a change?
@admah this issue is resolved with umask. thanks for the help.
I got the new error, “The file changelog.xml was not found in the configured search path”
for the code below, I put the file changelog.xml under $GITHUB_WORKSPACE and $GITHUB_WORKSPACE/.github/workflows, it doesn’t help. I even tried to add searchPath as below, it still doesn’t work, any ideas to resolve this issue?
@liqui you need to set up Liquibase per the instructions, and run it. You can see examples in the repo that I shared above. The error you’re seeing shows that Liquibase can’t find the changelog, and I would not expect it to find the changelog in the workflows folder.