Skip to content

run_changes

run_changes #76

# This is a basic workflow to help you get started with Actions
name: run_changes
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
workflow_dispatch:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
inputs:
tag:
description: 'Enter tag for rollback'
required: true
env:
LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.LIQUIBASE_PRO_LICENSE_KEY }}
LIQUIBASE_COMMAND_URL: ${{ secrets.LIQUIBASE_COMMAND_URL }}
LIQUIBASE_COMMAND_USERNAME: ${{ secrets.LIQUIBASE_COMMAND_USERNAME }}
LIQUIBASE_COMMAND_PASSWORD: ${{ secrets.LIQUIBASE_COMMAND_PASSWORD }}
LIQUIBASE_COMMAND_CHANGELOG_FILE: ${{ secrets.LIQUIBASE_COMMAND_CHANGELOG_FILE }}
LIQUIBASE_COMMAND_TAG: ${{ github.event.inputs.tag }}
jobs:
# Build_Job:
# runs-on: ubuntu-latest
# environment:
# name: DEV
#
# steps:
# - uses: actions/checkout@v3
# with:
# token: ${{ secrets.LB_GH_TOKEN }}
# - name: Running Flow
# uses: docker://liquibase/liquibase
# with:
# args: flow --flow-file=liquibase.flowfile.yaml
# env:
# LB_ENVIRONMENT: DEV
# ###
# ### Gather logs
# ###
# - name: Gather logs
# if: success() || failure()
# uses: actions/upload-artifact@v3
# with:
# name: logs
# path: |
# **/*DEV.json
# - name: Checkin snapshot
# run: |
# git config user.name github-actions
# git config user.email [email protected]
# git add .
# git commit -m "New Snapshots"
# git push
Test_Job:

Check failure on line 62 in .github/workflows/liquibase_workflow.yml

View workflow run for this annotation

GitHub Actions / run_changes

Invalid workflow file

The workflow is not valid. .github/workflows/liquibase_workflow.yml (Line: 62, Col: 3): The workflow must contain at least one job with no dependencies.
needs: Build_Job
runs-on: ubuntu-latest
environment:
name: TEST
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.LB_GH_TOKEN }}
- name: Running Flow
uses: docker://liquibase/liquibase
with:
args: flow --flow-file=liquibase.flowfile.yaml
env:
LB_ENVIRONMENT: TEST
###
### Gather logs
###
- name: Gather logs
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: logs
path: |
**/*TEST.json
- name: Checkin snapshot
run: |
git pull
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "New Snapshots $LB_ENVIRONMENT"
git push
Deploy_Prod_Job:
needs: Test_Job
runs-on: ubuntu-latest
environment:
name: PROD
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.LB_GH_TOKEN }}
- name: Running Flow
uses: docker://liquibase/liquibase
with:
args: flow --flow-file=liquibase.flowfileprod.yaml
env:
LB_ENVIRONMENT: PROD
###
### Gather logs
###
- name: Gather logs
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: logs
path: |
**/*PROD.json
- name: Checkin snapshot
run: |
git pull
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "New Snapshots"
git push