mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
set branch
This commit is contained in:
@@ -85,4 +85,4 @@ jobs:
|
|||||||
- name: "Release tag"
|
- name: "Release tag"
|
||||||
run: |
|
run: |
|
||||||
git fetch --all --quiet
|
git fetch --all --quiet
|
||||||
set -u; TRAVIS_BRANCH=master bash -x ./scripts/travis/release/git-tag.sh ${{ steps.set-dryrun.outputs.dryrun }}
|
set -u; TRAVIS_BRANCH=${GITHUB_REF##*/} bash -x ./scripts/travis/release/git-tag.sh ${{ steps.set-dryrun.outputs.dryrun }}
|
||||||
|
|||||||
@@ -9,20 +9,15 @@ fi;
|
|||||||
echo "git tag -a ${VERSION} -m ${VERSION}"
|
echo "git tag -a ${VERSION} -m ${VERSION}"
|
||||||
git config --local user.name "alfresco-build"
|
git config --local user.name "alfresco-build"
|
||||||
git config --local user.email "build@alfresco.com"
|
git config --local user.email "build@alfresco.com"
|
||||||
# git tag -a ${VERSION} -m "${VERSION} [ci skip] "
|
git tag -a ${VERSION} -m "${VERSION} [ci skip] "
|
||||||
git remote rm origin
|
git remote rm origin
|
||||||
GITHUB_REPO=https://$GITHUB_TOKEN:x-oauth-basic@github.com/Alfresco/alfresco-ng2-components.git
|
GITHUB_REPO=https://$GITHUB_TOKEN:x-oauth-basic@github.com/Alfresco/alfresco-ng2-components.git
|
||||||
git remote add origin $GITHUB_REPO
|
git remote add origin $GITHUB_REPO
|
||||||
|
|
||||||
if [[ "$1" == "--dryrun" ]]; then
|
if [[ "$1" == "--dryrun" ]]; then
|
||||||
echo "dry run";
|
echo "Dry run enabled. Nothing is changed";
|
||||||
git tag | grep "${VERSION}"
|
git tag | grep "${VERSION}"
|
||||||
git switch -c AAE-12037-dev
|
|
||||||
touch dev.test
|
|
||||||
git add dev.test
|
|
||||||
git commit -m "add dev.test"
|
|
||||||
git push origin AAE-12037-dev
|
|
||||||
else
|
else
|
||||||
echo "LIVE!"
|
echo "Pushing new tag ${VERSION}!"
|
||||||
#git push origin --tags
|
#git push origin --tags
|
||||||
fi;
|
fi;
|
||||||
|
|||||||
Reference in New Issue
Block a user