56
56
type : boolean
57
57
default : true
58
58
required : false
59
+ nightly_release :
60
+ description : " Nightly release to dev environment"
61
+ type : boolean
62
+ default : false
63
+ required : false
59
64
only_docker :
60
65
description : " Only release Docker image, skip GitHub & PyPI"
61
66
type : boolean
@@ -86,43 +91,38 @@ jobs:
86
91
echo Test run: ${{ inputs.test_run }}
87
92
echo Only Docker: ${{ inputs.only_docker }}
88
93
89
- # The Spark repository uses CircleCI to run integration tests.
90
- # Because of this, the process of version bumps will be manual
91
- # which means that this stage will be used to audit the version
92
- # and changelog in sources.
93
- # We are passing `env_setup_script_path` as an empty string
94
- # so that the integration tests stage will be skipped.
95
- audit-version-and-changelog :
96
- name : " Bump package version, Generate changelog"
97
- uses : dbt-labs/dbt-spark/.github/workflows/release-prep.yml@main
94
+ bump-version-generate-changelog :
95
+ name : Bump package version, Generate changelog
96
+ uses : dbt-labs/dbt-release/.github/workflows/release-prep.yml@removeSparkException
98
97
with :
99
98
sha : ${{ inputs.sha }}
100
99
version_number : ${{ inputs.version_number }}
101
100
target_branch : ${{ inputs.target_branch }}
102
- env_setup_script_path : " "
101
+ env_setup_script_path : ${{ inputs.env_setup_script_path }}
103
102
test_run : ${{ inputs.test_run }}
103
+ nightly_release : ${{ inputs.nightly_release }}
104
104
secrets : inherit
105
105
106
- log-outputs-audit -version-and -changelog :
106
+ log-outputs-bump -version-generate -changelog :
107
107
name : " [Log output] Bump package version, Generate changelog"
108
108
if : ${{ !failure() && !cancelled() && !inputs.only_docker }}
109
- needs : [audit -version-and -changelog]
109
+ needs : [bump -version-generate -changelog]
110
110
runs-on : ubuntu-latest
111
111
steps :
112
112
- name : Print variables
113
113
run : |
114
- echo Final SHA : ${{ needs.audit -version-and -changelog.outputs.final_sha }}
115
- echo Changelog path: ${{ needs.audit -version-and -changelog.outputs.changelog_path }}
114
+ echo Final SHA : ${{ needs.bump -version-generate -changelog.outputs.final_sha }}
115
+ echo Changelog path: ${{ needs.bump -version-generate -changelog.outputs.changelog_path }}
116
116
117
117
build-test-package :
118
118
name : " Build, Test, Package"
119
119
if : ${{ !failure() && !cancelled() && !inputs.only_docker }}
120
- needs : [audit -version-and -changelog]
120
+ needs : [bump -version-generate -changelog]
121
121
uses : dbt-labs/dbt-release/.github/workflows/build.yml@main
122
122
with :
123
- sha : ${{ needs.audit -version-and -changelog.outputs.final_sha }}
123
+ sha : ${{ needs.bump -version-generate -changelog.outputs.final_sha }}
124
124
version_number : ${{ inputs.version_number }}
125
- changelog_path : ${{ needs.audit -version-and -changelog.outputs.changelog_path }}
125
+ changelog_path : ${{ needs.bump -version-generate -changelog.outputs.changelog_path }}
126
126
build_script_path : ${{ inputs.build_script_path }}
127
127
s3_bucket_name : ${{ inputs.s3_bucket_name }}
128
128
package_test_command : ${{ inputs.package_test_command }}
@@ -134,12 +134,12 @@ jobs:
134
134
github-release :
135
135
name : " GitHub Release"
136
136
if : ${{ !failure() && !cancelled() && !inputs.only_docker }}
137
- needs : [audit -version-and -changelog, build-test-package]
137
+ needs : [bump -version-generate -changelog, build-test-package]
138
138
uses : dbt-labs/dbt-release/.github/workflows/github-release.yml@main
139
139
with :
140
- sha : ${{ needs.audit -version-and -changelog.outputs.final_sha }}
140
+ sha : ${{ needs.bump -version-generate -changelog.outputs.final_sha }}
141
141
version_number : ${{ inputs.version_number }}
142
- changelog_path : ${{ needs.audit -version-and -changelog.outputs.changelog_path }}
142
+ changelog_path : ${{ needs.bump -version-generate -changelog.outputs.changelog_path }}
143
143
test_run : ${{ inputs.test_run }}
144
144
145
145
pypi-release :
0 commit comments