liquibase / github-action-generator

Main repository to generate GitHub Actions for liquibase-github-actions
1 stars 1 forks source link

An action to just install Liquibase #119

Closed alexeyinkin closed 6 months ago

alexeyinkin commented 6 months ago

I would like an action that just installs Liquibase so that I can run commands in subsequent steps. The current actions are inconvenient for me because:

This substantial complexity will go away entirely if I could just have

- uses: liquibase-github-actions/install@v4.27.0

- run: |
    cd liquibase
    liquibase update
jnewton03 commented 6 months ago

hi @alexeyinkin, for your use case I would recommend using the liquibase docker container instead of the default actions. The docker container allows you to setup custom workflows. You could do something like this:

jobs:
  liquibase-update:
    runs-on: ubuntu-latest
    container:
      image: liquibase/liquibase:4.27.0

    steps:
    - name: Checkout Code
      uses: actions/checkout@v3

    - name: Run Liquibase Update
      working-directory: ./liquibase
      run: |
        liquibase update