From 152d281800626ffc5c082f4dfaa832e373aa5756 Mon Sep 17 00:00:00 2001 From: vatsrahul1001 <43964496+vatsrahul1001@users.noreply.github.com> Date: Thu, 21 Sep 2023 16:53:32 +0530 Subject: [PATCH] Airflow Providers Release testing - Deployment and trigger of example DAG (#2041) This pull request extends [PR](https://github.com/astronomer/astro-sdk/pull/2033). It updates the deployments with the rc_release testing branch and triggers example DAGs with the latest providers' RC version." --- .github/workflows/ci-astro-deploy.yml | 20 +++++++++++++++++++- .github/workflows/ci-rc-test.yaml | 12 ++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-astro-deploy.yml b/.github/workflows/ci-astro-deploy.yml index e57c4cf1b..05c85b8ef 100644 --- a/.github/workflows/ci-astro-deploy.yml +++ b/.github/workflows/ci-astro-deploy.yml @@ -24,7 +24,25 @@ on: required: false type: string default: '' - + workflow_call: + inputs: + git_rev: + description: 'The git revision to deploy' + type: string + required: false + default: '' + environment_to_deploy: + description: 'astro cloud deployment to deploy to' + required: true + type: string + default: both + dags_to_trigger_after_deployment: + description: | + Comma separated list of dag_ids to trigger after deployment + (e.g. "example_mssql_transform, example_load_file") + required: false + type: string + default: '' jobs: deploy-to-astro-sdk-integration-tests: diff --git a/.github/workflows/ci-rc-test.yaml b/.github/workflows/ci-rc-test.yaml index ee82ec19d..da696e9e7 100644 --- a/.github/workflows/ci-rc-test.yaml +++ b/.github/workflows/ci-rc-test.yaml @@ -41,3 +41,15 @@ jobs: working_directory: "python-sdk" secrets: BOT_ACCESS_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }} + + deploy-and-trigger-example-dag: + needs: check-airflow-provider-rc-release + if: | + always() && + needs.check-airflow-provider-rc-release.result == 'success' + uses: ./.github/workflows/ci-astro-deploy.yml + with: + environment_to_deploy: "both" + dags_to_trigger_after_deployment: "example_master_dag" + git_rev: ${{ needs.check-airflow-provider-rc-release.outputs.rc_testing_branch }} + secrets: inherit