Skip to content

Commit

Permalink
Merge pull request #208 from FAIRDataPipeline/fix/remotescript
Browse files Browse the repository at this point in the history
Fix remote install script
  • Loading branch information
richardreeve authored Jun 22, 2023
2 parents eadd439 + 26b3349 commit a5e6656
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ license: "BSD-2-Clause"
message: "If you use this software, please cite it using these metadata."
repository-code: "https://github.com/FAIRDataPipeline/data-registry/"
title: "The FAIR Data Registry"
version: "v1.0.6"
version: "v1.0.7"
doi: "10.5281/zenodo.5562750"
date-released: "2023-02-03"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ authors = [
]
description = "Codebase for the FAIR data-registry"
name = "data-registry"
version = "v1.0.6"
version = "v1.0.7"

[tool.poetry.dependencies]
Django = "3.1.13"
Expand Down
7 changes: 5 additions & 2 deletions static/localregistry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,12 @@ elif [ ! -z $(echo ${GIT_PRE_RELEASE} | xargs) ]; then
cd "$FAIR_HOME"
git checkout tags/$TAG > /dev/null 2>&1
else
TAG=`curl --silent "https://api.github.com/repos/FAIRDataPipeline/data-registry/releases/latest" | sed -n 's/^.*"tag_name": "\(v.*\)",.*$/\1/p'`
echo "Cloning tag $TAG"
git clone https://github.com/FAIRDataPipeline/data-registry.git "$FAIR_HOME" > /dev/null 2>&1
for OUTPUT in $(git -C $FAIR_HOME describe --abbrev=0 --tags)
do
TAG=$OUTPUT
done
echo "Cloning tag $TAG"
cd "$FAIR_HOME"
git checkout tags/$TAG > /dev/null 2>&1
fi
Expand Down
7 changes: 5 additions & 2 deletions static/remoteregistry.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,12 @@ elif [ ! -z $(echo ${GIT_BRANCH} | xargs) ]; then
echo "Cloning branch ${GIT_BRANCH}"
git clone https://github.com/FAIRDataPipeline/data-registry.git -b ${GIT_BRANCH} "$FAIR_HOME" > /dev/null 2>&1
else
TAG=`curl --silent "https://api.github.com/repos/FAIRDataPipeline/data-registry/releases/latest" | sed -n 's/^.*"tag_name": "\(v.*\)",.*$/\1/p'`
echo "Cloning tag $TAG"
git clone https://github.com/FAIRDataPipeline/data-registry.git "$FAIR_HOME" > /dev/null 2>&1
for OUTPUT in $(git -C $FAIR_HOME describe --abbrev=0 --tags)
do
TAG=$OUTPUT
done
echo "Cloning tag $TAG"
cd "$FAIR_HOME"
git checkout tags/$TAG > /dev/null 2>&1
fi
Expand Down

0 comments on commit a5e6656

Please sign in to comment.