From 9e2fc4f03a66f8f690bbf875f6ddbebbfc2ae8a1 Mon Sep 17 00:00:00 2001 From: Marco Carrozzo Date: Wed, 11 Jan 2023 12:05:06 +0100 Subject: [PATCH] debug dryrun mode --- .github/workflows/git-tag.yml | 5 +++-- scripts/travis/release/git-tag.sh | 15 ++++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/git-tag.yml b/.github/workflows/git-tag.yml index 6baf673fdc..93ad727a5f 100644 --- a/.github/workflows/git-tag.yml +++ b/.github/workflows/git-tag.yml @@ -84,5 +84,6 @@ jobs: node-version: 14 - name: "Release tag" run: | - git fetch --all - set -u; bash -x ./scripts/travis/release/git-tag.sh ${{ steps.set-dryrun.outputs.dryrun }} + echo "DRYRUN: ${{ steps.set-dryrun.outputs.dryrun }}" +# git fetch --all + # set -u; bash -x ./scripts/travis/release/git-tag.sh ${{ steps.set-dryrun.outputs.dryrun }} diff --git a/scripts/travis/release/git-tag.sh b/scripts/travis/release/git-tag.sh index 1731a803aa..b774665f47 100755 --- a/scripts/travis/release/git-tag.sh +++ b/scripts/travis/release/git-tag.sh @@ -1,5 +1,6 @@ #!/bin/bash - +echo "ARG: $1" +exit 0 if [[ $TRAVIS_BRANCH == "master" ]]; then VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g') else @@ -7,12 +8,12 @@ else fi; 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 -GITHUB_REPO=https://$GITHUB_TOKEN:x-oauth-basic@github.com/Alfresco/alfresco-ng2-components.git -git remote add origin $GITHUB_REPO +# 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 +# GITHUB_REPO=https://$GITHUB_TOKEN:x-oauth-basic@github.com/Alfresco/alfresco-ng2-components.git +# git remote add origin $GITHUB_REPO if [[ "$1" == "dryrun=--dryrun" ]]; then echo "dry run";