From b70231a29ba15cc1beeba23f7cefad291b5e8bb7 Mon Sep 17 00:00:00 2001 From: dreads Date: Wed, 8 Jan 2025 09:17:23 -0600 Subject: [PATCH 1/2] update root changelog --- sqlcode_by_releases_schema/rootchangelog.yaml | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/sqlcode_by_releases_schema/rootchangelog.yaml b/sqlcode_by_releases_schema/rootchangelog.yaml index bc72e35..e9dc87d 100644 --- a/sqlcode_by_releases_schema/rootchangelog.yaml +++ b/sqlcode_by_releases_schema/rootchangelog.yaml @@ -3,23 +3,23 @@ databaseChangeLog: - include: file: 1.0/changelog.yaml relativeToChangelogFile: true - -- include: - file: 1.1/changelog.yaml - relativeToChangelogFile: true - -- include: - file: 2.0/changelog.yaml - relativeToChangelogFile: true - -- include: - file: 2.1/changelog.yaml - relativeToChangelogFile: true - -- include: - file: 2.2/changelog.yaml - relativeToChangelogFile: true - -- include: - file: 3.0/changelog.yaml - relativeToChangelogFile: true +# +#- include: +# file: 1.1/changelog.yaml +# relativeToChangelogFile: true +# +#- include: +# file: 2.0/changelog.yaml +# relativeToChangelogFile: true +# +#- include: +# file: 2.1/changelog.yaml +# relativeToChangelogFile: true +# +#- include: +# file: 2.2/changelog.yaml +# relativeToChangelogFile: true +# +#- include: +# file: 3.0/changelog.yaml +# relativeToChangelogFile: true From b80f4150a50cd404f58f56671d5d21070ddb07c2 Mon Sep 17 00:00:00 2001 From: dreads Date: Wed, 8 Jan 2025 09:34:16 -0600 Subject: [PATCH 2/2] put a specific action name in the api payload --- .../liquibase_pro_cd_trigger_action.yml | 39 +++++++++++++++++++ ...ml => liquibase_pro_ci_trigger_action.yml} | 2 +- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/liquibase_pro_cd_trigger_action.yml rename .github/workflows/{liquibase_pro_ci_action.yml => liquibase_pro_ci_trigger_action.yml} (93%) diff --git a/.github/workflows/liquibase_pro_cd_trigger_action.yml b/.github/workflows/liquibase_pro_cd_trigger_action.yml new file mode 100644 index 0000000..73e4cdf --- /dev/null +++ b/.github/workflows/liquibase_pro_cd_trigger_action.yml @@ -0,0 +1,39 @@ +##################################################################### +# Trigger the continuous deployment (CD) of database +# changes using Liquibase Pro, Liquibase Pro Flows, and Custom +# Policy checks on another repository. +##################################################################### +name: 'Trigger the Liquibase Pro CD Workflow' +run-name: Continuous Deployment of ${{github.ref}} by ${{ github.actor }} + +# This workflow will execute whenever a 'push' event occurs on the +# 'develop' branch. A push event can occur due to several events, +# including merging a PR or bypassing rules and pushing directly to +# the branch as a repository administrator. When this workflow +# executes, it will deploy all pending changes, including any which +# have been previously rolled back. Since the GitHub Actions and +# Azure Pipelines files are housed in the same repository, we safely +# ignore any changes to the Azure workflows. +# +# To extend CD to other environments, add their corresponding +# branches here. +on: + push: + branches: + - 'develop' + paths-ignore: + - '.azure_pipelines/**' + +jobs: + trigger-event: + runs-on: ubuntu-latest + steps: + - name: Fire event + run: | + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ secrets.GHA_TRIGGER_PAT }}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/liquibase/cs-impl-guide-examples/actions/workflows/azure_liquibase_pro_cd_action.yml/dispatches \ + -d '{"event_type":"dispatch-event"}' diff --git a/.github/workflows/liquibase_pro_ci_action.yml b/.github/workflows/liquibase_pro_ci_trigger_action.yml similarity index 93% rename from .github/workflows/liquibase_pro_ci_action.yml rename to .github/workflows/liquibase_pro_ci_trigger_action.yml index ce42e15..d39e6ca 100644 --- a/.github/workflows/liquibase_pro_ci_action.yml +++ b/.github/workflows/liquibase_pro_ci_trigger_action.yml @@ -25,6 +25,6 @@ jobs: -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${{ secrets.GHA_TRIGGER_PAT }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/liquibase/cs-impl-guide-examples/dispatches \ + https://api.github.com/repos/liquibase/cs-impl-guide-examples/actions/workflows/azure_liquibase_pro_ci_action.yml/dispatches \ -d '{"event_type":"dispatch-event"}' \ No newline at end of file