mirror of
https://github.com/LemmyNet/lemmy-docs.git
synced 2024-11-22 04:11:09 +00:00
Include stable Lemmy tag (fixes #146)
This commit is contained in:
parent
8b9c725eb1
commit
cf842cfee4
1 changed files with 12 additions and 1 deletions
|
@ -1,4 +1,15 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
git clone https://github.com/LemmyNet/lemmy.git include --depth 1
|
||||
LEMMY_VERSION=$(curl "https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/VERSION")
|
||||
if [ ! -d "include/.git" ]
|
||||
then
|
||||
git clone https://github.com/LemmyNet/lemmy.git include
|
||||
cd include
|
||||
else
|
||||
cd include
|
||||
git checkout main
|
||||
git pull
|
||||
fi
|
||||
git fetch --tags
|
||||
git checkout "$LEMMY_VERSION"
|
Loading…
Reference in a new issue