[ADF-4860] Travis add tag beta on cron job (#5042)

* add the name and email values and push with the token

* add the name and email values and push with the token
This commit is contained in:
Maurizio Vitale 2019-09-02 11:26:55 +01:00 committed by GitHub
parent ce50e9a3d3
commit a2fedee05f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,10 @@
VERSION=$(npm view @alfresco/adf-core@beta version)
echo "git tag -a ${VERSION} -m ${VERSION}"
git config --local user.name "alfresco-build"
git config --local user.email "build@alfresco.com"
git tag -a ${VERSION} -m "${VERSION} [ci skip] "
git remote rm origin
git remote add origin '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 push origin --tags