From 71b6f72c7eca2e71d2a1bda7ddab5ad88271bd54 Mon Sep 17 00:00:00 2001 From: julenalbi <julenalbizuri3@gmail.com> Date: Fri, 18 Mar 2022 10:19:08 +0100 Subject: [PATCH] stage proper file --- stack-updater/get_principal_branch.sh | 6 ------ stack-updater/stack_updater.yml | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 stack-updater/get_principal_branch.sh diff --git a/stack-updater/get_principal_branch.sh b/stack-updater/get_principal_branch.sh deleted file mode 100644 index f37d1ca..0000000 --- a/stack-updater/get_principal_branch.sh +++ /dev/null @@ -1,6 +0,0 @@ -if git branch -a | grep -q main -then - echo "main"; -else - echo "master"; -fi diff --git a/stack-updater/stack_updater.yml b/stack-updater/stack_updater.yml index e9cf316..92064a0 100644 --- a/stack-updater/stack_updater.yml +++ b/stack-updater/stack_updater.yml @@ -15,10 +15,10 @@ update: - git checkout $current_version - git pull - node package-version-updater/versionUpdater.js -v $current_version - - git add package.json + - bash package-version-updater/stage_file.sh - git commit -m "Dependencies updated to $current_version" - npm version --allow-same-version $current_version - - branch=`bash get_principal_branch.sh` + - branch=`bash package-version-updater/get_principal_branch.sh` - echo ${branch} - git checkout ${branch} - git pull -- GitLab