diff --git a/.github/workflows/install-latest-snapshot-to-ubuntu-22-04.yml b/.github/workflows/install-latest-snapshot-to-ubuntu-22-04.yml index ecba1b13..b11eb6d5 100644 --- a/.github/workflows/install-latest-snapshot-to-ubuntu-22-04.yml +++ b/.github/workflows/install-latest-snapshot-to-ubuntu-22-04.yml @@ -12,7 +12,7 @@ jobs: - run: wget -O maven-metadata.xml https://oss.sonatype.org/service/local/repositories/snapshots/content/io/antmedia/ant-media-server/maven-metadata.xml #Get latest snapshot - run: | - export LATEST_SNAPSHOT=$(cat maven-metadata.xml | grep "" | tail -n 1 | xargs | cut -c 10-23) + export LATEST_SNAPSHOT=$(grep -oP '(?<=)[^<]+' maven-metadata.xml| tail -1) echo $LATEST_SNAPSHOT wget -O ant-media-server-community.zip "https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=io.antmedia&a=ant-media-server&v=${LATEST_SNAPSHOT}&c=community&e=zip"; - run: ./install_ant-media-server.sh -i ant-media-server-community.zip diff --git a/.github/workflows/install-latest-snapshot-to-ubuntu-24-04.yml b/.github/workflows/install-latest-snapshot-to-ubuntu-24-04.yml index e4b2b970..884c2141 100644 --- a/.github/workflows/install-latest-snapshot-to-ubuntu-24-04.yml +++ b/.github/workflows/install-latest-snapshot-to-ubuntu-24-04.yml @@ -12,7 +12,7 @@ jobs: - run: wget -O maven-metadata.xml https://oss.sonatype.org/service/local/repositories/snapshots/content/io/antmedia/ant-media-server/maven-metadata.xml #Get latest snapshot - run: | - export LATEST_SNAPSHOT=$(cat maven-metadata.xml | grep "" | tail -n 1 | xargs | cut -c 10-23) + export LATEST_SNAPSHOT=$(grep -oP '(?<=)[^<]+' maven-metadata.xml| tail -1) echo $LATEST_SNAPSHOT wget -O ant-media-server-community.zip "https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=io.antmedia&a=ant-media-server&v=${LATEST_SNAPSHOT}&c=community&e=zip"; - run: ./install_ant-media-server.sh -i ant-media-server-community.zip