From 9d9ccac8db7e7f0b8a276ec4d882c3370aa19b27 Mon Sep 17 00:00:00 2001 From: Mila Page Date: Mon, 18 Mar 2024 03:37:52 -0700 Subject: [PATCH] Add workflow for spark and changelog --- .../unreleased/Features-20240318-033621.yaml | 6 ++ .github/workflows/release-internal.yml | 64 +++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 .changes/unreleased/Features-20240318-033621.yaml create mode 100644 .github/workflows/release-internal.yml diff --git a/.changes/unreleased/Features-20240318-033621.yaml b/.changes/unreleased/Features-20240318-033621.yaml new file mode 100644 index 000000000..a1a1b9c5b --- /dev/null +++ b/.changes/unreleased/Features-20240318-033621.yaml @@ -0,0 +1,6 @@ +kind: Features +body: ': Add new workflow for internal patch releases' +time: 2024-03-18T03:36:21.634918-07:00 +custom: + Author: versusfacit + Issue: "38" diff --git a/.github/workflows/release-internal.yml b/.github/workflows/release-internal.yml new file mode 100644 index 000000000..462e14819 --- /dev/null +++ b/.github/workflows/release-internal.yml @@ -0,0 +1,64 @@ +name: Release internal patch + +on: + workflow_dispatch: + inputs: + version_number: + description: "The release version number (i.e. 1.0.0b1)" + type: string + required: true + sha: + description: "The sha to use (leave empty to use latest on main)" + type: string + required: false + package_test_command: + description: "Package test command" + type: string + default: "python -c \"import dbt.adapters.spark\"" + required: true + dbms_name: + description: "The name of the warehouse the adapter connects to." + type: string + default: "spark" + required: true + workflow_call: + inputs: + version_number: + description: "The release version number (i.e. 1.0.0b1)" + type: string + required: true + sha: + description: "The sha to use (leave empty to use latest on main)" + type: string + required: false + package_test_command: + description: "Package test command" + type: string + default: "python -c \"import dbt.adapters.spark\"" + required: true + dbms_name: + description: "The name of the warehouse the adapter connects to." + type: string + default: "spark" + required: true + +defaults: + run: + shell: bash + +env: + PYTHON_TARGET_VERSION: 3.11 + +jobs: + invoke-reusable-workflow: + name: Build and Release Internally + + uses: VersusFacit/dbt-release/.github/workflows/internal-archive-release.yml@main + + with: + version_number: ${{ inputs.version_number }} + package_test_command: ${{ inputs.package_test_command }} + dbms_name: ${{ inputs.dbms_name }} + sha: ${{ inputs.sha }} + + secrets: inherit