[gtk-web/ebassi/stable-tags: 2/2] Fetch the latest unstable tags




commit 24eec7411550909538f0c143bbf64ac71beca0bc
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Oct 29 21:55:42 2021 +0100

    Fetch the latest unstable tags

 _pages/index.html | 2 ++
 setup.sh          | 1 +
 2 files changed, 3 insertions(+)
---
diff --git a/_pages/index.html b/_pages/index.html
index 89a203f..426c6f1 100644
--- a/_pages/index.html
+++ b/_pages/index.html
@@ -107,6 +107,8 @@ news_and_events_list:
         <div>
           {% assign latest_tag = site.data.api_fetch.stable_tags[0] %}
           <span class="text-light"><span class="small text-info">Latest stable</span> v{{ latest_tag.name 
}}</span>
+          {% assign latest_unstable_tag = site.data.api_fetch.unstable_tags[0] %}
+          <span class="text-light"><span class="small text-info">Latest unstable</span> v{{ 
latest_unstable_tag.name }}</span>
         </div>
       </div>
       <div class="col-lg-6 d-flex justify-content-center align-items-center">
diff --git a/setup.sh b/setup.sh
index c3d0979..186d472 100755
--- a/setup.sh
+++ b/setup.sh
@@ -13,6 +13,7 @@ mkdir _data/api_fetch
 echo 'getting the api data from the gitlab...'
 curl -o- https://gitlab.gnome.org/api/v4/projects/665/repository/tags?search=^3.24 > 
_data/api_fetch/old_stable_tags.json
 curl -o- https://gitlab.gnome.org/api/v4/projects/665/repository/tags?search=^4.4 > 
_data/api_fetch/stable_tags.json
+curl -o- https://gitlab.gnome.org/api/v4/projects/665/repository/tags?search=^4.5 > 
_data/api_fetch/unstable_tags.json
 echo 'successfully fetched gtk-release-tags'
 curl -o- https://api.rss2json.com/v1/api.json?rss_url=https%3A%2F%2Fblog.gtk.org%2Ffeed%2F > 
_data/api_fetch/gtk-blog-feed.json
 echo 'successfully fetched the gtk blog feed in json format'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]