mirror of
https://github.com/kiwix/kiwix-android-custom.git
synced 2025-09-22 03:22:58 -04:00
Improved the fetching the latest main when info.json is configured to use "latest" branch of kiwix-android.
This commit is contained in:
parent
1ea23a161c
commit
907dd65223
4
.github/workflows/cd.yml
vendored
4
.github/workflows/cd.yml
vendored
@ -30,7 +30,7 @@ jobs:
|
||||
run: |
|
||||
cd ${TAG}
|
||||
rev_id=$(jq -r '."kiwix-android_revision" // empty' info.json)
|
||||
if [ -z "$rev_id" ]; then
|
||||
if [ -z "$rev_id" ] || [ "$rev_id" = "latest" ]; then
|
||||
echo "REV_ID=" >> $GITHUB_ENV
|
||||
else
|
||||
echo "REV_ID=$rev_id" >> $GITHUB_ENV
|
||||
@ -118,7 +118,7 @@ jobs:
|
||||
run: |
|
||||
cd ${TAG}
|
||||
rev_id=$(jq -r '."kiwix-android_revision" // empty' info.json)
|
||||
if [ -z "$rev_id" ]; then
|
||||
if [ -z "$rev_id" ] || [ "$rev_id" = "latest" ]; then
|
||||
echo "REV_ID=" >> $GITHUB_ENV
|
||||
else
|
||||
echo "REV_ID=$rev_id" >> $GITHUB_ENV
|
||||
|
Loading…
x
Reference in New Issue
Block a user