Skip to content

Commit

Permalink
Fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
wmaxey committed Nov 1, 2024
1 parent e3c3fc8 commit d8dfd18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release-create-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,9 @@ jobs:
git show --oneline --no-patch HEAD | tee -a $GITHUB_STEP_SUMMARY
- name: Update version numbers in main
uses: ./.github/workflows/update-branch-version.yml
with:
new_version: "${{ inputs.main_version }}"
target_branch: "main"
id: update_main
run: |
gh workflow run update-branch-version.yml --ref main -f new_version="$main_version" -f target_branch="main" | tee -a $GITHUB_STEP_SUMMARY
- name: Notify Slack
if: ${{ success()}}
Expand Down
19 changes: 1 addition & 18 deletions .github/workflows/update-branch-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# limitations under the License.

name: "Release: 0. Update version in target branch"
id: "update_branch_version"

# The target branch when starting this workflow should be:
# 1. "branch/{major}.{minor}.x" if it exists, or
Expand All @@ -38,24 +39,6 @@ on:
required: true
default: false

workflow_call:
inputs:
new_version:
description: "Version 'X.Y.Z' for the release branch."
type: string
required: true
default: "0.0.0"
target_branch:
description: "Target branch for the version update"
type: string
required: false
default: "main"
force:
description: "Enable overwriting existing PR branches (this does not force overwrite the target branch or skip creating a PR)"
type: boolean
required: true
default: false

defaults:
run:
shell: bash --noprofile --norc -euo pipefail {0}
Expand Down

0 comments on commit d8dfd18

Please sign in to comment.