modified: .github/workflows/mikrotik_patch.yml

modified:   README.md
	modified:   README_CN.md
This commit is contained in:
zyb 2024-07-02 10:12:24 +08:00
parent d518b90b7c
commit 4917416ccf
3 changed files with 10 additions and 5 deletions

View File

@ -25,7 +25,7 @@ jobs:
TZ: 'Asia/Shanghai'
LATEST_VERSION_URL: 'https://upgrade.mikrotik.com/routeros/NEWESTa7'
LATEST_VERSION: ""
BUILD_TIME: $(date +"%s")
BUILD_TIME: "0"
CUSTOM_LICENSE_PRIVATE_KEY: ${{ secrets.CUSTOM_LICENSE_PRIVATE_KEY }}
CUSTOM_LICENSE_PUBLIC_KEY: ${{ secrets.CUSTOM_LICENSE_PUBLIC_KEY }}
CUSTOM_NPK_SIGN_PRIVATE_KEY: ${{ secrets.CUSTOM_NPK_SIGN_PRIVATE_KEY }}
@ -86,10 +86,13 @@ jobs:
else
LATEST_VERSION=${{ inputs.version }}
fi
BUILD_TIME=$(date +"%s")
echo Latest Version:$LATEST_VERSION
wget -nv -O CHANGELOG.txt https://upgrade.mikrotik.com/routeros/$LATEST_VERSION/CHANGELOG
cat CHANGELOG.txt
echo Build Time:$BUILD_TIME
wget -nv -O CHANGELOG https://upgrade.mikrotik.com/routeros/$LATEST_VERSION/CHANGELOG
cat CHANGELOG
echo "LATEST_VERSION=${LATEST_VERSION}" >> $GITHUB_ENV
echo "BUILD_TIME=${BUILD_TIME}" >> $GITHUB_ENV
- name: Cache Mikrotik ${{ env.LATEST_VERSION }}
id: cache-mikrotik
@ -275,7 +278,7 @@ jobs:
- name: Upload Files
run: |
mkdir -p ./publish/$LATEST_VERSION
cp CHANGELOG.txt ./publish/$LATEST_VERSION/CHANGELOG
cp CHANGELOG ./publish/$LATEST_VERSION/
cp ./new_iso/*.npk ./publish/$LATEST_VERSION/
echo $LATEST_VERSION $BUILD_TIME > ./publish/NEWESTa7.${{ matrix.channel }}
sudo apt-get install -y lftp > /dev/null 2>&1
@ -304,7 +307,7 @@ jobs:
uses: softprops/action-gh-release@v2
with:
name: "RouterOS ${{ env.LATEST_VERSION }}"
body_path: "CHANGELOG.txt"
body_path: "CHANGELOG"
tag_name: ${{ env.LATEST_VERSION }}
make_latest: ${{ matrix.channel == 'stable'}}
prerelease: ${{ matrix.channel == 'testing' }}

View File

@ -19,6 +19,7 @@
## How to license RouterOS
telnet to routeros with username devel and password is same as admin
run keygen
chr mode could use renew lincense online
## How to use python3
install python3-{version}.npk package
run telnet to routeros with username devel and password is same as admin

View File

@ -21,6 +21,7 @@
进入shell
运行 keygen
参考上图。
Chr镜像支持在线授权许可
## 如何使用Python
安装 python3-{version}.npk 包
telnet到RouterOS,用户名devel,密码与admin的密码相同