Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new workflow for cutting .latest branches #641

Merged
merged 5 commits into from
Feb 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/cut-release-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# **what?**
# Calls a centralize3d workflow that will:
# 1. Cut a new branch (generally `*.latest`)
# 2. Also cleans up all files in `.changes/unreleased` and `.changes/previous version 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-spark"
uses: dbt-labs/actions/.github/workflows/cut-release-branch.yml@main
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: "This PR will fail CI until the dbt-core PR has been merged due to release version conflicts. dev-requirements.txt needs to be updated to have the dbt-core dependencies point to this new branch."
secrets:
FISHTOWN_BOT_PAT: ${{ secrets.FISHTOWN_BOT_PAT }}