mirror of
https://github.com/EvilFreelancer/docker-routeros.git
synced 2025-08-03 09:34:29 +02:00
Update curl command to match mikrotik website change.
This commit is contained in:
parent
9d864ca2bf
commit
39df24d448
1 changed files with 1 additions and 1 deletions
2
.github/workflows/pr.yml
vendored
2
.github/workflows/pr.yml
vendored
|
@ -18,7 +18,7 @@ jobs:
|
|||
- name: Check new release
|
||||
id: check_release
|
||||
run: |
|
||||
LAST_MIKROTIK_RELEASE=$(curl https://mikrotik.com/download/archive -o - 2>/dev/null | grep -o '<a href=['"'"'"][^"'"'"']*['"'"'"]' | sed -e 's/^<a href=["'"'"']//' -e 's/["'"'"']$//' | grep -i vdi | sed 's:.*/::' | sort -V | tail -n 1 | sed -r 's/chr\-(.*)\.vdi/\1/gi'| sed -r 's/\.zip//gi')
|
||||
LAST_MIKROTIK_RELEASE=$( curl https://mikrotik.com/download/archive -o - 2>/dev/null | grep -o '<a href=['"'"'"][^"'"'"']*['"'"'"]' | sed -e 's/^<a href=["'"'"']//' -e 's/["'"'"']$//' | grep -i c-stable | sed -r 's/\#c-stable-v//gi'|sed -r 's/_/\./gi'|sort -V|tail -n 1)
|
||||
NEW_TAG=$(grep "ROUTEROS_VERSION=\"" Dockerfile |cut -d "\"" -f 2)
|
||||
if [ "$LAST_MIKROTIK_RELEASE" != "$NEW_TAG" ]; then
|
||||
echo "New version found: $LAST_MIKROTIK_RELEASE"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue