mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 08:48:27 -04:00
use jq instead of awk
This commit is contained in:
@@ -20,7 +20,7 @@ jobs:
|
|||||||
echo "BASEIMAGE=${{ env.BASEIMAGE }}" >> $GITHUB_OUTPUT
|
echo "BASEIMAGE=${{ env.BASEIMAGE }}" >> $GITHUB_OUTPUT
|
||||||
echo "MODNAME=${{ env.MODNAME }}" >> $GITHUB_OUTPUT
|
echo "MODNAME=${{ env.MODNAME }}" >> $GITHUB_OUTPUT
|
||||||
# **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. ****
|
# **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. ****
|
||||||
MOD_VERSION=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]')
|
MOD_VERSION=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" | jq -r '.tag_name')
|
||||||
echo "MOD_VERSION=${MOD_VERSION}" >> $GITHUB_OUTPUT
|
echo "MOD_VERSION=${MOD_VERSION}" >> $GITHUB_OUTPUT
|
||||||
outputs:
|
outputs:
|
||||||
GITHUB_REPO: ${{ steps.outputs.outputs.GITHUB_REPO }}
|
GITHUB_REPO: ${{ steps.outputs.outputs.GITHUB_REPO }}
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ RUN \
|
|||||||
/root-layer && \
|
/root-layer && \
|
||||||
if [[ -z "${MOD_VERSION}" ]]; then \
|
if [[ -z "${MOD_VERSION}" ]]; then \
|
||||||
MOD_VERSION=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
|
MOD_VERSION=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
|
||||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
| jq -r '.tag_name'); \
|
||||||
fi && \
|
fi && \
|
||||||
echo $MOD_VERSION > /root-layer/CALIBRE_RELEASE
|
echo $MOD_VERSION > /root-layer/CALIBRE_RELEASE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user