Skip to content

Commit

Permalink
Merge pull request #842 from mrapp-ke/merge-bugfix
Browse files Browse the repository at this point in the history
Merge bugfix into feature branch
  • Loading branch information
issue-api-tokens[bot] authored Apr 23, 2024
2 parents f8a4dc2 + 2487bb4 commit ded71a6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 11 deletions.
41 changes: 31 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,37 +23,58 @@ jobs:
- name: Checkout release branch
run: |
git checkout ${{ github.event.release.target_commitish }}
- name: Update major version
- name: Reset development version
if: ${{ github.event.release.target_commitish == 'main' }}
run: |
./build reset_development_version
git add VERSION.dev && git commit -m "[Bot] Update development version to $(cat VERSION.dev)." && git push origin main
./build increment_major_version
git add VERSION
git commit -m "[Bot] Update version to $(cat VERSION)."
git push origin main
- name: Merge into feature branch
if: ${{ github.event.release.target_commitish == 'main' }}
run: |
git checkout -b feature origin/feature
git merge origin/main --strategy-option theirs -m "[Bot] Merge branch \"main\" into \"feature\"."
./build increment_minor_version
git add VERSION
git commit -m "[Bot] Update version to $(cat VERSION)."
git push origin feature
- name: Merge into bugfix branch
if: ${{ github.event.release.target_commitish == 'main' }} || ${{ github.event.release.target_commitish == 'feature' }}
run: |
git checkout -b bugfix origin/bugfix
git merge origin/feature --strategy-option theirs -m "[Bot] Merge branch \"main\" into \"bugfix\"."
git merge origin/feature --strategy-option theirs -m "[Bot] Merge branch \"feature\" into \"bugfix\"."
git push origin bugfix
- name: Update major version
if: ${{ github.event.release.target_commitish == 'main' }}
run: |
git checkout main
./build increment_major_version
git add VERSION
git commit -m "[Bot] Update version to $(cat VERSION)."
git push origin main
git checkout feature
./build increment_minor_version
git add VERSION
git commit -m "[Bot] Update version to $(cat VERSION)."
git push origin feature
git checkout bugfix
./build increment_patch_version
git add VERSION
git commit -m "[Bot] Update version to $(cat VERSION)."
git push origin bugfix
- name: Update minor version
if: ${{ github.event.release.target_commitish == 'feature' }}
run: |
git checkout feature
./build increment_minor_version
git add VERSION
git commit -m "[Bot] Update version to $(cat VERSION)."
git push origin feature
git checkout bugfix
./build increment_patch_version
git add VERSION
git commit -m "[Bot] Update version to $(cat VERSION)."
git push origin bugfix
- name: Update patch version
if: ${{ github.event.release.target_commitish == 'bugfix' }}
run: |
git checkout -b bugfix origin/bugfix
git checkout bugfix
./build increment_patch_version
git add VERSION
git commit -m "[Bot] Update version to $(cat VERSION)."
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.0
0.10.0

0 comments on commit ded71a6

Please sign in to comment.