mirror of
https://github.com/YunoHost-Apps/snserver_ynh.git
synced 2024-09-03 20:26:22 +02:00
Fix: ci-auto-updater
This commit is contained in:
parent
6372a418ab
commit
c73657f994
1 changed files with 2 additions and 2 deletions
4
.github/workflows/updater.sh
vendored
4
.github/workflows/updater.sh
vendored
|
@ -23,7 +23,7 @@ commit=""
|
||||||
id=0
|
id=0
|
||||||
while [[ -z $commit && $id -le 29 ]]
|
while [[ -z $commit && $id -le 29 ]]
|
||||||
do
|
do
|
||||||
commit=$(curl --silent "https://api.github.com/repos/$repo/commits" | jq -r '.[$id] | .sha' )
|
commit=$(curl --silent "https://api.github.com/repos/$repo/commits" | jq -r ".[$id] | .sha" )
|
||||||
tags=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' https://github.com/standardnotes/server.git | grep $commit)
|
tags=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' https://github.com/standardnotes/server.git | grep $commit)
|
||||||
|
|
||||||
if [[ -z $tags || $tags == *"alpha"* ]]; then
|
if [[ -z $tags || $tags == *"alpha"* ]]; then
|
||||||
|
@ -41,7 +41,7 @@ version=$(curl --silent "https://api.github.com/repos/$repo/commits/$commit" | j
|
||||||
api_gateway_online_version=$(curl --silent "https://raw.githubusercontent.com/$repo/$commit/packages/api-gateway/package.json" | jq -j '.version')
|
api_gateway_online_version=$(curl --silent "https://raw.githubusercontent.com/$repo/$commit/packages/api-gateway/package.json" | jq -j '.version')
|
||||||
auth_online_version=$(curl --silent "https://raw.githubusercontent.com/$repo/$commit/packages/auth/package.json" | jq -j '.version')
|
auth_online_version=$(curl --silent "https://raw.githubusercontent.com/$repo/$commit/packages/auth/package.json" | jq -j '.version')
|
||||||
files_online_version=$(curl --silent "https://raw.githubusercontent.com/$repo/$commit/packages/files/package.json" | jq -j '.version')
|
files_online_version=$(curl --silent "https://raw.githubusercontent.com/$repo/$commit/packages/files/package.json" | jq -j '.version')
|
||||||
ss_online_version=$(curl --silent "https://raw.githubusercontent.com/$repo/$commit/packages/syncing_server/package.json" | jq -j '.#version')
|
ss_online_version=$(curl --silent "https://raw.githubusercontent.com/$repo/$commit/packages/syncing_server/package.json" | jq -j '.version')
|
||||||
|
|
||||||
# Setting up the environment variables
|
# Setting up the environment variables
|
||||||
echo "Current version: $current_version"
|
echo "Current version: $current_version"
|
||||||
|
|
Loading…
Reference in a new issue