mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2025-01-23 13:35:09 +03:00
modified: .github/workflows/mikrotik_patch.yml
This commit is contained in:
parent
fe0b266716
commit
588e2a0714
15
.github/workflows/mikrotik_patch.yml
vendored
15
.github/workflows/mikrotik_patch.yml
vendored
@ -5,11 +5,18 @@ on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: 'RouterOS version, blank for latest'
|
||||
required: false
|
||||
default: ''
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
Patch_Latest_RouterOS:
|
||||
Patch_RouterOS_7:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
@ -70,7 +77,11 @@ jobs:
|
||||
- name: Get latest routeros version
|
||||
run: |
|
||||
echo $(uname -a)
|
||||
LATEST_VERSION=$(wget -nv -O - ${{ env.LATEST_VERSION_URL }}.${{ matrix.channel }} | cut -d ' ' -f1)
|
||||
if [ "${{ inputs.version }}" == "" ]; then
|
||||
LATEST_VERSION=$(wget -nv -O - ${{ env.LATEST_VERSION_URL }}.${{ matrix.channel }} | cut -d ' ' -f1)
|
||||
else
|
||||
LATEST_VERSION=${{ inputs.version }}
|
||||
fi
|
||||
echo Latest Version:$LATEST_VERSION
|
||||
wget -nv -O CHANGELOG.txt https://upgrade.mikrotik.com/routeros/$LATEST_VERSION/CHANGELOG
|
||||
cat CHANGELOG.txt
|
||||
|
Loading…
Reference in New Issue
Block a user