debug dryrun mode

This commit is contained in:
Marco Carrozzo
2023-01-11 12:05:06 +01:00
parent 8f0a6142c9
commit 9e2fc4f03a
2 changed files with 11 additions and 9 deletions
+3 -2
View File
@@ -84,5 +84,6 @@ jobs:
node-version: 14 node-version: 14
- name: "Release tag" - name: "Release tag"
run: | run: |
git fetch --all echo "DRYRUN: ${{ steps.set-dryrun.outputs.dryrun }}"
set -u; bash -x ./scripts/travis/release/git-tag.sh ${{ steps.set-dryrun.outputs.dryrun }} # git fetch --all
# set -u; bash -x ./scripts/travis/release/git-tag.sh ${{ steps.set-dryrun.outputs.dryrun }}
+8 -7
View File
@@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
echo "ARG: $1"
exit 0
if [[ $TRAVIS_BRANCH == "master" ]]; then if [[ $TRAVIS_BRANCH == "master" ]]; then
VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g') VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g')
else else
@@ -7,12 +8,12 @@ else
fi; 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=--dryrun" ]]; then if [[ "$1" == "dryrun=--dryrun" ]]; then
echo "dry run"; echo "dry run";