|
1 |
| -name: Release internal patch |
| 1 | +# What? |
| 2 | +# |
| 3 | +# Tag and release an arbitrary ref. Uploads to an internal archive for further processing. |
| 4 | +# |
| 5 | +# How? |
| 6 | +# |
| 7 | +# After checking out and testing the provided ref, the image is built and uploaded. |
| 8 | +# |
| 9 | +# When? |
| 10 | +# |
| 11 | +# Manual trigger. |
| 12 | + |
| 13 | +name: "Release internal patch" |
2 | 14 |
|
3 | 15 | on:
|
4 | 16 | workflow_dispatch:
|
|
7 | 19 | description: "The release version number (i.e. 1.0.0b1)"
|
8 | 20 | type: string
|
9 | 21 | required: true
|
10 |
| - sha: |
11 |
| - description: "The sha to use (leave empty to use latest on main)" |
12 |
| - type: string |
13 |
| - required: false |
14 |
| - package_test_command: |
15 |
| - description: "Package test command" |
16 |
| - type: string |
17 |
| - default: "python -c \"import dbt.adapters.snowflake\"" |
18 |
| - required: true |
19 |
| - dbms_name: |
20 |
| - description: "The name of the warehouse the adapter connects to." |
21 |
| - type: string |
22 |
| - default: "snowflake" |
23 |
| - required: true |
24 |
| - workflow_call: |
25 |
| - inputs: |
26 |
| - version_number: |
27 |
| - description: "The release version number (i.e. 1.0.0b1)" |
| 22 | + ref: |
| 23 | + description: "The ref (sha or branch name) to use" |
28 | 24 | type: string
|
| 25 | + default: "main" |
29 | 26 | required: true
|
30 |
| - sha: |
31 |
| - description: "The sha to use (leave empty to use latest on main)" |
32 |
| - type: string |
33 |
| - required: false |
34 | 27 | package_test_command:
|
35 | 28 | description: "Package test command"
|
36 | 29 | type: string
|
37 | 30 | default: "python -c \"import dbt.adapters.snowflake\""
|
38 | 31 | required: true
|
39 |
| - dbms_name: |
40 |
| - description: "The name of the warehouse the adapter connects to." |
41 |
| - type: string |
42 |
| - default: "snowflake" |
43 |
| - required: true |
44 | 32 |
|
45 | 33 | defaults:
|
46 | 34 | run:
|
47 | 35 | shell: bash
|
48 | 36 |
|
49 |
| -env: |
50 |
| - PYTHON_TARGET_VERSION: 3.11 |
51 |
| - |
52 | 37 | jobs:
|
53 | 38 | invoke-reusable-workflow:
|
54 |
| - name: Build and Release Internally |
| 39 | + name: "Build and Release Internally" |
55 | 40 |
|
56 |
| - uses: VersusFacit/dbt-release/.github/workflows/internal-archive-release.yml@main |
| 41 | + uses: "dbt-labs/dbt-release/.github/workflows/internal-archive-release.yml@main" |
57 | 42 |
|
58 | 43 | with:
|
59 |
| - version_number: ${{ inputs.version_number }} |
60 |
| - package_test_command: ${{ inputs.package_test_command }} |
61 |
| - dbms_name: ${{ inputs.dbms_name }} |
62 |
| - sha: ${{ inputs.sha }} |
| 44 | + version_number: "${{ inputs.version_number }}" |
| 45 | + package_test_command: "${{ inputs.package_test_command }}" |
| 46 | + dbms_name: "snowflake" |
| 47 | + ref: "${{ inputs.ref }}" |
63 | 48 |
|
64 |
| - secrets: inherit |
| 49 | + secrets: "inherit" |
0 commit comments