mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-23 02:52:34 +03:00
Fix push create release commits on ci
This commit is contained in:
parent
7879344f26
commit
fd71cb357e
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
@ -270,13 +270,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Push create release commits
|
- name: Push create release commits
|
||||||
run: |
|
run: |
|
||||||
git commit -am "Create ${{ needs.set-context.outputs.release_version }} release"
|
git diff --exit-code && diff=false || diff=true
|
||||||
git push && git_exit_code=0 || git_exit_code=$?
|
if [ "${diff}" == "true" ] ; then
|
||||||
if [ ${git_exit_code} -eq 0 ] ; then
|
git commit -am "Create ${{ needs.set-context.outputs.release_version }} release"
|
||||||
echo " - ✅ commits pushed to ${{ needs.set-context.outputs.release_branch }}."
|
git push && git_exit_code=0 || git_exit_code=$?
|
||||||
|
if [ ${git_exit_code} -eq 0 ] ; then
|
||||||
|
echo " - ✅ commits pushed to ${{ needs.set-context.outputs.release_branch }}."
|
||||||
|
else
|
||||||
|
echo " - ❌ A problem occurs when attempting to push create relase commits to ${{ needs.set-context.outputs.release_branch }} branch."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo " - ❌ A problem occurs when attempting to push create relase commits to ${{ needs.set-context.outputs.release_branch }} branch."
|
echo " - ✅ no changes"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Archive artifacts
|
- name: Archive artifacts
|
||||||
|
Loading…
Reference in New Issue
Block a user