mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2025-01-23 21:44:59 +03:00
modified: .github/workflows/mikrotik_patch.yml
This commit is contained in:
parent
10427f983b
commit
19e2b5fd7d
8
.github/workflows/mikrotik_patch.yml
vendored
8
.github/workflows/mikrotik_patch.yml
vendored
@ -20,7 +20,6 @@ jobs:
|
|||||||
LATEST7_VERSION_URL: 'https://upgrade.mikrotik.com/routeros/NEWESTa7'
|
LATEST7_VERSION_URL: 'https://upgrade.mikrotik.com/routeros/NEWESTa7'
|
||||||
LATEST6_VERSION_URL: 'http://upgrade.mikrotik.com/routeros/LATEST.6'
|
LATEST6_VERSION_URL: 'http://upgrade.mikrotik.com/routeros/LATEST.6'
|
||||||
LATEST_VERSION: ""
|
LATEST_VERSION: ""
|
||||||
LATEST_CHANGELOG: ""
|
|
||||||
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 }}
|
||||||
CUSTOM_NPK_SIGN_PRIVATE_KEY: ${{ secrets.CUSTOM_NPK_SIGN_PRIVATE_KEY }}
|
CUSTOM_NPK_SIGN_PRIVATE_KEY: ${{ secrets.CUSTOM_NPK_SIGN_PRIVATE_KEY }}
|
||||||
@ -75,10 +74,9 @@ jobs:
|
|||||||
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.LATEST7_VERSION_URL }}.${{ matrix.channel }} | cut -d ' ' -f1)
|
||||||
echo Latest Version:$LATEST_VERSION
|
echo Latest Version:$LATEST_VERSION
|
||||||
LATEST_CHANGELOG=$(wget -nv -O - https://upgrade.mikrotik.com/routeros/$LATEST_VERSION/CHANGELOG)
|
wget -nv -O CHANGELOG.txt https://upgrade.mikrotik.com/routeros/$LATEST_VERSION/CHANGELOG
|
||||||
echo Latest Changelog:$LATEST_CHANGELOG
|
cat CHANGELOG.txt
|
||||||
echo "LATEST_VERSION=${LATEST_VERSION}" >> $GITHUB_ENV
|
echo "LATEST_VERSION=${LATEST_VERSION}" >> $GITHUB_ENV
|
||||||
echo "LATEST_CHANGELOG=${LATEST_CHANGELOG}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Cache Mikrotik ${{ env.LATEST_VERSION }}
|
- name: Cache Mikrotik ${{ env.LATEST_VERSION }}
|
||||||
id: cache-mikrotik
|
id: cache-mikrotik
|
||||||
@ -283,7 +281,7 @@ jobs:
|
|||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
name: "RouterOS ${{ env.LATEST_VERSION }}"
|
name: "RouterOS ${{ env.LATEST_VERSION }}"
|
||||||
body: "${{ env.LATEST_CHANGELOG }}"
|
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' && matrix.branch == '7' }}
|
||||||
prerelease: ${{ matrix.channel == 'testing' }}
|
prerelease: ${{ matrix.channel == 'testing' }}
|
||||||
|
Loading…
Reference in New Issue
Block a user