Skip to content

Commit

Permalink
feat(ci): bump minor for k branches
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney committed Nov 22, 2023
1 parent 5c822c1 commit 44d573d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@ jobs:
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: bump minor for k releases
if: ${{ startsWith(steps.extract_branch.outputs.branch, 'k') }}
run: |
mv release-please-config.json release-please-config.orig.json
jq '.versioning = "always-bump-minor"' release-please-config.orig.json > release-please-config.json
- uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
default-branch: "${{ steps.extract_branch.outputs.branch }}"
versioning-strategy: always-bump-patch
- name: Upload Release Artifact
if: ${{ steps.release.outputs.release_created }}
env:
Expand Down
1 change: 1 addition & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"bootstrap-sha": "b100d6fe25669928cb023e4b869af0cfe353b7b1",
"versioning": "always-bump-patch",
"release-type": "simple",
"bump-minor-pre-major": false,
"bump-patch-for-minor-pre-major": false,
Expand Down

0 comments on commit 44d573d

Please sign in to comment.