Skip to content

Commit

Permalink
Add Bigquery internal build process workflow (#1140)
Browse files Browse the repository at this point in the history
* Add workflow file.

* Add changelog

---------

Co-authored-by: Mila Page <[email protected]>
  • Loading branch information
VersusFacit and VersusFacit authored Mar 20, 2024
1 parent faf1a7f commit 5c1b70f
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Features-20240318-032256.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Features
body: Add new workflow for internal patch releases
time: 2024-03-18T03:22:56.037781-07:00
custom:
Author: versusfacit
Issue: "38"
64 changes: 64 additions & 0 deletions .github/workflows/release-internal.yml
Original file line number Diff line number Diff line change
@@ -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.bigquery\""
required: true
dbms_name:
description: "The name of the warehouse the adapter connects to."
type: string
default: "bigquery"
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.bigquery\""
required: true
dbms_name:
description: "The name of the warehouse the adapter connects to."
type: string
default: "bigquery"
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

0 comments on commit 5c1b70f

Please sign in to comment.