diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 249358eb9..9d1e9ea70 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,7 @@ jobs: run: | python -m pip install --upgrade pip pip install PyGithub + pip install timeago - name: Run script and commit changes run: | python release.py diff --git a/index.html b/index.html index 01aacbd8a..3abfa1c31 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@ --- {% assign org_href = "https://github.com/elementary" %} +{% assign now = 'now' | date: '%s' | plus: 0 %}
{{ repo.name }} @@ -28,23 +30,30 @@ | {% if repo.new_commits == 0 %} Up to date + {% elsif release_date_seconds > (now - 2419200) %} + + Recent Release + {% elsif repo.new_commits == 1 %} {{ repo.new_commits }} commit - {% elsif repo.new_commits > 1 and repo.new_commits < 15 %} + {% elsif repo.new_commits <= 15 %} {{ repo.new_commits }} commits - {% elsif repo.new_commits >= 15 and repo.new_commits < 50 %} + {% elsif repo.new_commits <= 50 %} {{ repo.new_commits }} commits - {% elsif repo.new_commits >= 50 %} + {% else %} {{ repo.new_commits }} commits {% endif %} + |