forked from dbt-labs/dbt-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate cutting new .latest branches (dbt-labs#6854)
* first pass * WIP * add notes/stubs on more pieces * more work * more cleanup * cleanup * add more cleanup and generalization * update to use reusable workflow * add TODO
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# **what?** | ||
# Cuts a new `*.latest` branch | ||
# Also cleans up all files in `.changes/unreleased` and `.changes/previous verion on | ||
# `main` and bumps `main` to the input version. | ||
|
||
# **why?** | ||
# Generally reduces the workload of engineers and reduces error. Allow automation. | ||
|
||
# **when?** | ||
# This will run when called manually. | ||
|
||
name: Cut new release branch | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version_to_bump_main: | ||
description: 'The alpha version main should bump to (ex. 1.6.0a1)' | ||
required: true | ||
new_branch_name: | ||
description: 'The full name of the new branch (ex. 1.5.latest)' | ||
required: true | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
cut_branch: | ||
name: "Cut branch and clean up main for dbt-core" | ||
# TODO: update to point at `main` once testing is complete | ||
uses: dbt-labs/actions/.github/workflows/cut-release-branch.yaml@er/ct-495-cleanup | ||
with: | ||
version_to_bump_main: ${{ inputs.version_to_bump_main }} | ||
new_branch_name: ${{ inputs.new_branch_name }} | ||
PR_title: "Cleanup main after cutting new ${{ inputs.new_branch_name }} branch" | ||
PR_body: "All adapter PRs will fail CI until the dbt-core PR has been merged due to release version conflicts." | ||
secrets: | ||
FISHTOWN_BOT_PAT: ${{ secrets.FISHTOWN_BOT_PAT }} |