mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Revert "ACS-2608 Support force directive. (#992)"
This reverts commit 905e813aa4
.
This commit is contained in:
@@ -32,7 +32,7 @@ env:
|
|||||||
|
|
||||||
stages:
|
stages:
|
||||||
- name: test
|
- name: test
|
||||||
if: commit_message !~ /\[skip tests\]/ AND commit_message !~ /\[force[^\]]*\]/
|
if: commit_message !~ /\[skip tests\]/
|
||||||
- name: release
|
- name: release
|
||||||
if: commit_message !~ /\[no release\]/ AND (branch = master OR branch =~ /release\/.*/) AND type != pull_request AND fork = false
|
if: commit_message !~ /\[no release\]/ AND (branch = master OR branch =~ /release\/.*/) AND type != pull_request AND fork = false
|
||||||
- name: update_downstream
|
- name: update_downstream
|
||||||
|
@@ -33,11 +33,7 @@ git status
|
|||||||
git --no-pager diff pom.xml
|
git --no-pager diff pom.xml
|
||||||
git add pom.xml
|
git add pom.xml
|
||||||
|
|
||||||
if [[ "${TRAVIS_COMMIT_MESSAGE}" =~ \[force[^\]]*\] ]]; then
|
if git status --untracked-files=no --porcelain | grep -q '^' ; then
|
||||||
FORCE_TOKEN=$(echo "${TRAVIS_COMMIT_MESSAGE}" | sed "s|^.*\(\[force[^]]*\]\).*$|\1|g")
|
|
||||||
git commit --allow-empty -m "${FORCE_TOKEN} Update upstream version to ${VERSION}"
|
|
||||||
git push
|
|
||||||
elif git status --untracked-files=no --porcelain | grep -q '^' ; then
|
|
||||||
git commit -m "Update upstream version to ${VERSION}"
|
git commit -m "Update upstream version to ${VERSION}"
|
||||||
git push
|
git push
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user