ci: update release workflow for error handling
All checks were successful
Lint Pull Request / Lint PR Title (pull_request) Has been skipped
All checks were successful
Lint Pull Request / Lint PR Title (pull_request) Has been skipped
This commit is contained in:
parent
c420551cdb
commit
66f0f05e55
1 changed files with 5 additions and 3 deletions
|
@ -52,23 +52,25 @@ jobs:
|
|||
run: |
|
||||
git add docs/
|
||||
git commit -m "chore(release): [skip ci]"
|
||||
continue-on-error: true
|
||||
|
||||
- name: Push changes to release branch
|
||||
if: ${{ steps.semantic.outputs.new_release_published }}
|
||||
run: |
|
||||
git remote set-url origin git@${{ env.GITEA_DOMAIN }}:${{ github.repository }}.git
|
||||
git push origin HEAD:${{ env.RELEASE_BRANCH }}
|
||||
continue-on-error: true
|
||||
|
||||
- name: Checkout target branch
|
||||
if: ${{ steps.semantic.outputs.new_release_published && !(env.SKIP_MERGE == true) }}
|
||||
if: ${{ !(env.SKIP_MERGE == true) }}
|
||||
run: git reset --hard && git checkout ${{ env.TARGET_BRANCH }} && git pull
|
||||
|
||||
- name: Merge release
|
||||
if: ${{ steps.semantic.outputs.new_release_published && !(env.SKIP_MERGE == true) }}
|
||||
if: ${{ !(env.SKIP_MERGE == true) }}
|
||||
run: git merge ${{ env.RELEASE_BRANCH }}
|
||||
|
||||
- name: Push changes to target branch
|
||||
if: ${{ steps.semantic.outputs.new_release_published && !(env.SKIP_MERGE == true) }}
|
||||
if: ${{ !(env.SKIP_MERGE == true) }}
|
||||
run: |
|
||||
git remote set-url origin git@${{ env.GITEA_DOMAIN }}:${{ github.repository }}.git
|
||||
git push origin HEAD:${{ env.TARGET_BRANCH }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue