From 9f05d6b983204729949f488afb956ca365e017ba Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Mon, 29 Apr 2024 16:01:44 -0700 Subject: [PATCH 1/3] add in autorelease bot --- .github/workflows/auto-release.yml | 0 CHANGELOG.md | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/auto-release.yml diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml new file mode 100644 index 0000000..e69de29 diff --git a/CHANGELOG.md b/CHANGELOG.md index f4fdc50..c10bf4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,8 @@ ## 🚘 Under the Hood 🚘 - Cast `property_value` in the `integration_tests/dbt_project.yml` to ensure the field was originally being cast as a string or varchar data type for testing purposes. - Updated the `event` seed file to test for values that aren't numerics. -- Updated the pull request template. +- Updated the pull request template. +- Included auto-releaser GitHub Actions workflow to automate future releases. ## Contributors - [@vnguyen12](https://github.com/vnguyen12) [#21](https://github.com/fivetran/dbt_klaviyo_source/pull/21) From ee630a956f2166024c52962b310ec64785c720c3 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Mon, 29 Apr 2024 16:02:59 -0700 Subject: [PATCH 2/3] auto-release.yml --- .github/workflows/auto-release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index e69de29..8ed5853 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -0,0 +1,13 @@ +name: 'auto release' +on: + pull_request: + types: + - closed + branches: + - main + +jobs: + call-workflow-passing-data: + if: github.event.pull_request.merged + uses: fivetran/dbt_package_automations/.github/workflows/auto-release.yml@main + secrets: inherit \ No newline at end of file From 4c316c7aac2f55845caebe820b53883ced108ebb Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Mon, 29 Apr 2024 16:28:40 -0700 Subject: [PATCH 3/3] auto-release.yml --- integration_tests/ci/sample.profiles.yml | 10 +++++----- integration_tests/dbt_project.yml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index 843d2b4..70ea7c5 100644 --- a/integration_tests/ci/sample.profiles.yml +++ b/integration_tests/ci/sample.profiles.yml @@ -16,13 +16,13 @@ integration_tests: pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}" dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}" port: 5439 - schema: klaviyo_source_integration_tests_3 + schema: klaviyo_source_integration_tests_4 threads: 8 bigquery: type: bigquery method: service-account-json project: 'dbt-package-testing' - schema: klaviyo_source_integration_tests_3 + schema: klaviyo_source_integration_tests_4 threads: 8 keyfile_json: "{{ env_var('GCLOUD_SERVICE_KEY') | as_native }}" snowflake: @@ -33,7 +33,7 @@ integration_tests: role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}" database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}" warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}" - schema: klaviyo_source_integration_tests_3 + schema: klaviyo_source_integration_tests_4 threads: 8 postgres: type: postgres @@ -42,13 +42,13 @@ integration_tests: pass: "{{ env_var('CI_POSTGRES_DBT_PASS') }}" dbname: "{{ env_var('CI_POSTGRES_DBT_DBNAME') }}" port: 5432 - schema: klaviyo_source_integration_tests_3 + schema: klaviyo_source_integration_tests_4 threads: 8 databricks: catalog: "{{ env_var('CI_DATABRICKS_DBT_CATALOG') }}" host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}" http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}" - schema: klaviyo_source_integration_tests_3 + schema: klaviyo_source_integration_tests_4 threads: 8 token: "{{ env_var('CI_DATABRICKS_DBT_TOKEN') }}" type: databricks \ No newline at end of file diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 8b08e49..4372991 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -16,7 +16,7 @@ vars: klaviyo_metric_identifier: "metric" klaviyo__event_pass_through_columns: [] klaviyo__person_pass_through_columns: [] - klaviyo_schema: klaviyo_source_integration_tests_3 + klaviyo_schema: klaviyo_source_integration_tests_4 seeds: klaviyo_source_integration_tests: