From ee3da67db6f69baca576f6b758550257f8c1d575 Mon Sep 17 00:00:00 2001 From: Mila Page <67295367+VersusFacit@users.noreply.github.com> Date: Tue, 26 Mar 2024 16:06:21 -0700 Subject: [PATCH] Add release internal workflow (#36) Co-authored-by: Mila Page --- .github/workflows/release-internal.yml | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release-internal.yml b/.github/workflows/release-internal.yml index d560787e..01f1a9e3 100644 --- a/.github/workflows/release-internal.yml +++ b/.github/workflows/release-internal.yml @@ -1,19 +1,16 @@ # What? # -# Send a sha as a fully fledged relase to an internal archive for further processing. +# Tag and release an arbitrary ref. Uploads to an internal archive for further processing. # # How? # -# Checkout the sha -# Test it -# Build it -# Upload it +# After checking out and testing the provided ref, the image is built and uploaded. # # When? # -# Manual trigger +# Manual trigger. -name: Release internal patch +name: "Release internal patch" on: workflow_dispatch: @@ -22,10 +19,11 @@ on: 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)" + ref: + description: "The ref (sha or branch name) to use" type: string - required: false + default: "main" + required: true package_test_command: description: "Package test command" type: string @@ -36,19 +34,16 @@ defaults: run: shell: "bash" -env: - PYTHON_TARGET_VERSION: 3.11 - jobs: invoke-reusable-workflow: name: "Build and Release Internally" - uses: "dbt-labs/dbt-release/.github/workflows/internal-archive-release.yml@mp/finish_internal_workflow" + uses: "dbt-labs/dbt-release/.github/workflows/internal-archive-release.yml@main" with: version_number: "${{ inputs.version_number }}" package_test_command: "${{ inputs.package_test_command }}" dbms_name: "postgres" - sha: "${{ inputs.sha }}" + ref: "${{ inputs.ref }}" secrets: "inherit"