Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 268f3af

Browse files
Add version bump into release.yml (#1147)
* Add version bump into release.yml * use removeSparkException branch for release-prep
1 parent 0ccce2f commit 268f3af

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ on:
5656
type: boolean
5757
default: true
5858
required: false
59+
nightly_release:
60+
description: "Nightly release to dev environment"
61+
type: boolean
62+
default: false
63+
required: false
5964
only_docker:
6065
description: "Only release Docker image, skip GitHub & PyPI"
6166
type: boolean
@@ -86,43 +91,38 @@ jobs:
8691
echo Test run: ${{ inputs.test_run }}
8792
echo Only Docker: ${{ inputs.only_docker }}
8893
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
9897
with:
9998
sha: ${{ inputs.sha }}
10099
version_number: ${{ inputs.version_number }}
101100
target_branch: ${{ inputs.target_branch }}
102-
env_setup_script_path: ""
101+
env_setup_script_path: ${{ inputs.env_setup_script_path }}
103102
test_run: ${{ inputs.test_run }}
103+
nightly_release: ${{ inputs.nightly_release }}
104104
secrets: inherit
105105

106-
log-outputs-audit-version-and-changelog:
106+
log-outputs-bump-version-generate-changelog:
107107
name: "[Log output] Bump package version, Generate changelog"
108108
if: ${{ !failure() && !cancelled() && !inputs.only_docker }}
109-
needs: [audit-version-and-changelog]
109+
needs: [bump-version-generate-changelog]
110110
runs-on: ubuntu-latest
111111
steps:
112112
- name: Print variables
113113
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 }}
116116
117117
build-test-package:
118118
name: "Build, Test, Package"
119119
if: ${{ !failure() && !cancelled() && !inputs.only_docker }}
120-
needs: [audit-version-and-changelog]
120+
needs: [bump-version-generate-changelog]
121121
uses: dbt-labs/dbt-release/.github/workflows/build.yml@main
122122
with:
123-
sha: ${{ needs.audit-version-and-changelog.outputs.final_sha }}
123+
sha: ${{ needs.bump-version-generate-changelog.outputs.final_sha }}
124124
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 }}
126126
build_script_path: ${{ inputs.build_script_path }}
127127
s3_bucket_name: ${{ inputs.s3_bucket_name }}
128128
package_test_command: ${{ inputs.package_test_command }}
@@ -134,12 +134,12 @@ jobs:
134134
github-release:
135135
name: "GitHub Release"
136136
if: ${{ !failure() && !cancelled() && !inputs.only_docker }}
137-
needs: [audit-version-and-changelog, build-test-package]
137+
needs: [bump-version-generate-changelog, build-test-package]
138138
uses: dbt-labs/dbt-release/.github/workflows/github-release.yml@main
139139
with:
140-
sha: ${{ needs.audit-version-and-changelog.outputs.final_sha }}
140+
sha: ${{ needs.bump-version-generate-changelog.outputs.final_sha }}
141141
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 }}
143143
test_run: ${{ inputs.test_run }}
144144

145145
pypi-release:

0 commit comments

Comments
 (0)