modified: .github/workflows/mikrotik_patch.yml

modified:   mbr.bin
This commit is contained in:
zyb 2024-06-30 04:33:37 +08:00
parent cd668046c8
commit fe0b266716
2 changed files with 13 additions and 15 deletions

View File

@ -13,12 +13,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
branch: [7]
channel: [stable, testing] channel: [stable, testing]
env: env:
TZ: 'Asia/Shanghai' TZ: 'Asia/Shanghai'
LATEST7_VERSION_URL: 'https://upgrade.mikrotik.com/routeros/NEWESTa7' LATEST_VERSION_URL: 'https://upgrade.mikrotik.com/routeros/NEWESTa7'
LATEST6_VERSION_URL: 'http://upgrade.mikrotik.com/routeros/LATEST.6'
LATEST_VERSION: "" LATEST_VERSION: ""
CUSTOM_LICENSE_PRIVATE_KEY: ${{ secrets.CUSTOM_LICENSE_PRIVATE_KEY }} CUSTOM_LICENSE_PRIVATE_KEY: ${{ secrets.CUSTOM_LICENSE_PRIVATE_KEY }}
CUSTOM_LICENSE_PUBLIC_KEY: ${{ secrets.CUSTOM_LICENSE_PUBLIC_KEY }} CUSTOM_LICENSE_PUBLIC_KEY: ${{ secrets.CUSTOM_LICENSE_PUBLIC_KEY }}
@ -72,7 +70,7 @@ jobs:
- name: Get latest routeros version - name: Get latest routeros version
run: | run: |
echo $(uname -a) echo $(uname -a)
LATEST_VERSION=$(wget -nv -O - ${{ env.LATEST7_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
wget -nv -O CHANGELOG.txt https://upgrade.mikrotik.com/routeros/$LATEST_VERSION/CHANGELOG wget -nv -O CHANGELOG.txt https://upgrade.mikrotik.com/routeros/$LATEST_VERSION/CHANGELOG
cat CHANGELOG.txt cat CHANGELOG.txt
@ -259,16 +257,16 @@ jobs:
sudo rm *.vdi sudo rm *.vdi
sudo rm *.img sudo rm *.img
- name: Create Publish Directory # - name: Create Publish Directory
run: | # run: |
mkdir ./publish # mkdir ./publish
cp CHANGELOG.txt ./publish/ # cp CHANGELOG.txt ./publish/
cp mikrotik-$LATEST_VERSION.iso ./publish/ # cp mikrotik-$LATEST_VERSION.iso ./publish/
cp chr-$LATEST_VERSION*.zip ./publish/ # cp chr-$LATEST_VERSION*.zip ./publish/
cp netinstall-$LATEST_VERSION.zip ./publish/ # cp netinstall-$LATEST_VERSION.zip ./publish/
cp install-image-$LATEST_VERSION.zip ./publish/ # cp install-image-$LATEST_VERSION.zip ./publish/
cp all_packages-x86-$LATEST_VERSION.zip ./publish/ # cp all_packages-x86-$LATEST_VERSION.zip ./publish/
cp ./new_iso/*.npk ./publish/ # cp ./new_iso/*.npk ./publish/
- name: Delete Release tag ${{ env.LATEST_VERSION }} - name: Delete Release tag ${{ env.LATEST_VERSION }}
run: | run: |
@ -291,7 +289,7 @@ jobs:
name: "RouterOS ${{ env.LATEST_VERSION }}" name: "RouterOS ${{ env.LATEST_VERSION }}"
body_path: "CHANGELOG.txt" body_path: "CHANGELOG.txt"
tag_name: ${{ env.LATEST_VERSION }} tag_name: ${{ env.LATEST_VERSION }}
make_latest: ${{ matrix.channel == 'stable' && matrix.branch == 7 }} make_latest: ${{ matrix.channel == 'stable'}}
prerelease: ${{ matrix.channel == 'testing' }} prerelease: ${{ matrix.channel == 'testing' }}
files: | files: |
mikrotik-${{ env.LATEST_VERSION }}.iso mikrotik-${{ env.LATEST_VERSION }}.iso

BIN
mbr.bin

Binary file not shown.