diff --git a/.github/actions/deploy-almalinux-8/action.yml b/.github/actions/deploy-almalinux-8/action.yml index 6025aeeb..cd520ab2 100644 --- a/.github/actions/deploy-almalinux-8/action.yml +++ b/.github/actions/deploy-almalinux-8/action.yml @@ -9,7 +9,7 @@ runs: run: | echo "💡 The ${{ github.repository }} repository has been cloned to the runner." yum -y install wget which findutils which crontabs unzip - curl -L -o ant-media-server-community.zip https://github.com/ant-media/Ant-Media-Server/releases/download/ams-v2.11.3/ant-media-server-community-2.11.3.zip + curl -L -o ant-media-server-community.zip $(curl -s https://api.github.com/repos/ant-media/Ant-Media-Server/releases/latest | grep "browser_download_url" | cut -d '"' -f 4) bash ./install_ant-media-server.sh -i ant-media-server-community.zip -s false /usr/local/antmedia/antmedia start sleep 30 diff --git a/.github/actions/deploy-centos-8/action.yml b/.github/actions/deploy-centos-8/action.yml index 0458cb79..a987db93 100644 --- a/.github/actions/deploy-centos-8/action.yml +++ b/.github/actions/deploy-centos-8/action.yml @@ -11,7 +11,7 @@ runs: sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* yum -y install wget which findutils which crontabs unzip - curl -L -o ant-media-server-community.zip https://github.com/ant-media/Ant-Media-Server/releases/download/ams-v2.11.3/ant-media-server-community-2.11.3.zip + curl -L -o ant-media-server-community.zip $(curl -s https://api.github.com/repos/ant-media/Ant-Media-Server/releases/latest | grep "browser_download_url" | cut -d '"' -f 4) bash ./install_ant-media-server.sh -i ant-media-server-community.zip -s false /usr/local/antmedia/antmedia start sleep 30 diff --git a/.github/actions/deploy-rockylinux-8/action.yml b/.github/actions/deploy-rockylinux-8/action.yml index f016abc9..d1c9729b 100644 --- a/.github/actions/deploy-rockylinux-8/action.yml +++ b/.github/actions/deploy-rockylinux-8/action.yml @@ -10,7 +10,7 @@ runs: run: | echo "💡 The ${{ github.repository }} repository has been cloned to the runner." yum -y install wget which findutils which crontabs unzip - curl -L -o ant-media-server-community.zip https://github.com/ant-media/Ant-Media-Server/releases/download/ams-v2.11.3/ant-media-server-community-2.11.3.zip + curl -L -o ant-media-server-community.zip $(curl -s https://api.github.com/repos/ant-media/Ant-Media-Server/releases/latest | grep "browser_download_url" | cut -d '"' -f 4) bash ./install_ant-media-server.sh -i ant-media-server-community.zip -s false /usr/local/antmedia/antmedia start sleep 30