Include stable Lemmy tag (fixes #146) (#147)

This commit is contained in:
Nutomic 2022-09-02 16:40:05 +02:00 committed by GitHub
parent 215df3f322
commit 809f0bc756
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,15 @@
#!/bin/bash #!/bin/bash
set -e 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"