mirror of
https://github.com/kiwix/kiwix-android-custom.git
synced 2025-09-09 12:49:55 -04:00
Fixed: jp unable to extract the "kiwix-android_revision" tag from info.json
file.
* Fixed: jp is not found when extract the "kiwix-android_revision" from `info.json`.
This commit is contained in:
parent
ac5dda9d22
commit
29e8cd3654
16
.github/workflows/cd.yml
vendored
16
.github/workflows/cd.yml
vendored
@ -20,10 +20,13 @@ jobs:
|
||||
java-version: 17
|
||||
distribution: temurin
|
||||
|
||||
- name: Install jq
|
||||
run: sudo apt-get install -y jq
|
||||
|
||||
- name: Read revision ID from info.json
|
||||
run: |
|
||||
cd ${TAG}
|
||||
rev_id=$(jq -r '.kiwix-android_revision // empty' info.json)
|
||||
rev_id=$(jq -r '."kiwix-android_revision" // empty' info.json)
|
||||
if [ -z "$rev_id" ]; then
|
||||
echo "REV_ID=" >> $GITHUB_ENV
|
||||
else
|
||||
@ -49,9 +52,6 @@ jobs:
|
||||
- name: Set tag variable
|
||||
run: echo "TAG=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
|
||||
|
||||
- name: Install jq
|
||||
run: sudo apt-get install -y jq
|
||||
|
||||
- name: Set non-kiwix organization tag
|
||||
run: |
|
||||
non_kiwix_organization_tag="PLAYSTORE_JSON_${TAG^^}"
|
||||
@ -108,10 +108,13 @@ jobs:
|
||||
java-version: 17
|
||||
distribution: temurin
|
||||
|
||||
- name: Install jq
|
||||
run: sudo apt-get install -y jq
|
||||
|
||||
- name: Read revision ID from info.json
|
||||
run: |
|
||||
cd ${TAG}
|
||||
rev_id=$(jq -r '.kiwix-android_revision // empty' info.json)
|
||||
rev_id=$(jq -r '."kiwix-android_revision" // empty' info.json)
|
||||
if [ -z "$rev_id" ]; then
|
||||
echo "REV_ID=" >> $GITHUB_ENV
|
||||
else
|
||||
@ -134,9 +137,6 @@ jobs:
|
||||
- name: Copying custom app configuration into Kiwix Android code base
|
||||
run: ./copy_files_to_kiwix_android.sh
|
||||
|
||||
- name: Install jq
|
||||
run: sudo apt-get install -y jq
|
||||
|
||||
- name: Set tag variable
|
||||
run: echo "TAG=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user