Browse Source

Update mikrotik_patch_6.yml

Signed-off-by: Micah365 <76233554+Micah365@users.noreply.github.com>
pull/93/head
Micah365 12 months ago
committed by GitHub
parent
commit
655a502fd2
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 16
      .github/workflows/mikrotik_patch_6.yml

16
.github/workflows/mikrotik_patch_6.yml

@ -90,14 +90,14 @@ jobs:
LATEST_VERSION=$(wget -nv -O - https://${{ env.MIKRO_UPGRADE_URL }}/routeros/NEWEST6.${{ matrix.channel }} | cut -d ' ' -f1)
fi
echo Latest Version:$LATEST_VERSION
if [ "${{ github.event_name }}" == "schedule" ]; then
_LATEST_VERSION=$(wget -nv -O - https://${{ env.CUSTOM_UPGRADE_URL }}/routeros/NEWEST6.${{ matrix.channel }} | cut -d ' ' -f1)
if [ "$_LATEST_VERSION" == "$LATEST_VERSION" ]; then
echo "No new version found"
echo "has_new_version=false" >> $GITHUB_OUTPUT
exit 0
fi
fi
# if [ "${{ github.event_name }}" == "schedule" ]; then
# _LATEST_VERSION=$(wget -nv -O - https://${{ env.CUSTOM_UPGRADE_URL }}/routeros/NEWEST6.${{ matrix.channel }} | cut -d ' ' -f1)
# if [ "$_LATEST_VERSION" == "$LATEST_VERSION" ]; then
# echo "No new version found"
# echo "has_new_version=false" >> $GITHUB_OUTPUT
# exit 0
# fi
# fi
echo "has_new_version=true" >> $GITHUB_OUTPUT
BUILD_TIME=${{ needs.Set_BuildTime.outputs.BUILD_TIME }}
echo Build Time:$BUILD_TIME

Loading…
Cancel
Save