modified: .github/workflows/mikrotik_patch.yml

This commit is contained in:
zyb 2024-07-13 22:55:32 +08:00
parent 382efa0578
commit dd0f8ef310

View File

@ -47,7 +47,7 @@ jobs:
LATEST_VERSION=$(wget -nv -O - ${{ env.LATEST_VERSION_URL }}.${{ matrix.channel }} | cut -d ' ' -f1) LATEST_VERSION=$(wget -nv -O - ${{ env.LATEST_VERSION_URL }}.${{ matrix.channel }} | cut -d ' ' -f1)
echo Latest Version:$LATEST_VERSION echo Latest Version:$LATEST_VERSION
if [ "${{ github.event_name }}" == "schedule" ]; then if [ "${{ github.event_name }}" == "schedule" ]; then
_LATEST_VERSION=$(wget -nv -O - https://upgrade.mikrotik.ltd/routeros/NEWESTa7.${{ matrix.channel }} | cut -d ' ' -f1) _LATEST_VERSION=$(wget -nv -O - https://${{ env.CUSTOM_UPGRADE_URL }}/routeros/NEWESTa7.${{ matrix.channel }} | cut -d ' ' -f1)
if [ "$_LATEST_VERSION" == "$LATEST_VERSION" ]; then if [ "$_LATEST_VERSION" == "$LATEST_VERSION" ]; then
echo "No new version found" echo "No new version found"
exit 0 exit 0