Skip to content

Commit

Permalink
feat: emby beta image shows version
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Nov 23, 2024
1 parent 3e168ae commit 023bbda
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/embyserver_latest_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,33 @@ jobs:
uses: actions/checkout@v4

-
name: Get Version Amilys
name: Get Latest Version Amilys
run: |
docker run --entrypoint cp -v ${PWD}/emby:/data amilys/embyserver:latest /system/EmbyServer.deps.json /data
LATEST_VERSION=$(grep "EmbyServer" emby/EmbyServer.deps.json | head -n 1 | sed -n 's|.*EmbyServer/\(.*\)":.*|\1|p')
sed -i "1,40s|amilys_embyserver_latest_version=.*|amilys_embyserver_latest_version=${LATEST_VERSION}|" all_in_one.sh
-
name: Get Version Emby
name: Get Latest Version Emby
run: |
docker run --entrypoint cp -v ${PWD}/emby:/data emby/embyserver:latest /system/EmbyServer.deps.json /data
LATEST_VERSION=$(grep "EmbyServer" emby/EmbyServer.deps.json | head -n 1 | sed -n 's|.*EmbyServer/\(.*\)":.*|\1|p')
sed -i "1,40s|emby_embyserver_latest_version=.*|emby_embyserver_latest_version=${LATEST_VERSION}|" all_in_one.sh
-
name: Get Beta Version Amilys
run: |
docker run --entrypoint cp -v ${PWD}/emby:/data amilys/embyserver:beta /system/EmbyServer.deps.json /data
LATEST_VERSION=$(grep "EmbyServer" emby/EmbyServer.deps.json | head -n 1 | sed -n 's|.*EmbyServer/\(.*\)":.*|\1|p')
sed -i "1,40s|amilys_embyserver_beta_version=.*|amilys_embyserver_beta_version=${LATEST_VERSION}|" all_in_one.sh
-
name: Get Beta Version Emby
run: |
docker run --entrypoint cp -v ${PWD}/emby:/data emby/embyserver:beta /system/EmbyServer.deps.json /data
LATEST_VERSION=$(grep "EmbyServer" emby/EmbyServer.deps.json | head -n 1 | sed -n 's|.*EmbyServer/\(.*\)":.*|\1|p')
sed -i "1,40s|emby_embyserver_beta_version=.*|emby_embyserver_beta_version=${LATEST_VERSION}|" all_in_one.sh
-
uses: stefanzweifel/git-auto-commit-action@v5
with:
Expand Down
6 changes: 4 additions & 2 deletions all_in_one.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ DATE_VERSION="v1.7.4-2024_10_05_10_37"
# ——————————————————————————————————————————————————————————————————————————————————
amilys_embyserver_latest_version=4.8.10.0
emby_embyserver_latest_version=4.8.10.0
amilys_embyserver_beta_version=
emby_embyserver_beta_version=
# ——————————————————————————————————————————————————————————————————————————————————

Sky_Blue="\e[36m"
Expand Down Expand Up @@ -3055,7 +3057,7 @@ function oneclick_upgrade_emby() {
IMAGE_VERSION=latest
break
else
INFO "请选择 Emby 镜像版本 [ 1;4.8.8.0 | 2;4.8.9.0 | 3;latest(${amilys_embyserver_latest_version})| 4;beta(此版本请勿轻易尝试)](默认 2)"
INFO "请选择 Emby 镜像版本 [ 1;4.8.8.0 | 2;4.8.9.0 | 3;latest(${amilys_embyserver_latest_version})| 4;beta(${amilys_embyserver_beta_version})(此版本请勿轻易尝试)](默认 2)"
read -erp "CHOOSE_IMAGE_VERSION:" CHOOSE_IMAGE_VERSION
[[ -z "${CHOOSE_IMAGE_VERSION}" ]] && CHOOSE_IMAGE_VERSION="2"
case ${CHOOSE_IMAGE_VERSION} in
Expand Down Expand Up @@ -3084,7 +3086,7 @@ function oneclick_upgrade_emby() {
WARN "lovechen/embyserver 镜像无法更新!"
exit 0
elif [ "${old_image_name}" == "emby/embyserver" ] || [ "${old_image_name}" == "emby/embyserver_arm64v8" ]; then
INFO "请选择 Emby 镜像版本 [ 1;4.8.8.0 | 2;4.8.9.0 | 3;latest(${emby_embyserver_latest_version}) | 4;beta(此版本请勿轻易尝试) ](默认 2)"
INFO "请选择 Emby 镜像版本 [ 1;4.8.8.0 | 2;4.8.9.0 | 3;latest(${emby_embyserver_latest_version}) | 4;beta(${emby_embyserver_beta_version})(此版本请勿轻易尝试) ](默认 2)"
read -erp "CHOOSE_IMAGE_VERSION:" CHOOSE_IMAGE_VERSION
[[ -z "${CHOOSE_IMAGE_VERSION}" ]] && CHOOSE_IMAGE_VERSION="2"
case ${CHOOSE_IMAGE_VERSION} in
Expand Down

0 comments on commit 023bbda

Please sign in to comment.