Skip to content

Commit

Permalink
Update mikrotik_patch_7.yml
Browse files Browse the repository at this point in the history
Signed-off-by: bimaindrawans <[email protected]>
  • Loading branch information
bimaindrawans authored Nov 5, 2024
1 parent 3a31341 commit f6073fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/mikrotik_patch_7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,16 @@ jobs:
elif [ "${{ matrix.arch }}" == "arm64" ]; then
sudo wget -nv -O mikrotik.iso https://download.mikrotik.com/routeros/$LATEST_VERSION/mikrotik-$LATEST_VERSION$ARCH.iso
elif [ "${{ matrix.arch }}" == "arm" ] || [ "${{ matrix.arch }}" == "mmips" ] || [ "${{ matrix.arch }}" == "mipsbe" ] || [ "${{ matrix.arch }}" == "smips" ] || [ "${{ matrix.arch }}" == "tile" ] || [ "${{ matrix.arch }}" == "ppc" ]; then
sudo wget -nv -O routeros.npk https://download.mikrotik.com/routeros/$LATEST_VERSION/routeros-${{$LATEST_VERSION}}$ARCH.npk
sudo wget -nv -O routeros.zip https://download.mikrotik.com/routeros/$LATEST_VERSION/all_packages$ARCH-${{$LATEST_VERSION}}.zip
sudo wget -nv -O routeros.npk https://download.mikrotik.com/routeros/$LATEST_VERSION/routeros-$LATEST_VERSION$ARCH.npk
sudo wget -nv -O routeros.zip https://download.mikrotik.com/routeros/$LATEST_VERSION/all_packages$ARCH-$LATEST_VERSION.zip
fi
- name: Patch mikrotik-${{ env.LATEST_VERSION }}${{ env.ARCH }}.iso
if: steps.get_latest.outputs.has_new_version == 'true'
run: |
if [ "${{ matrix.arch }}" == "arm" ] || [ "${{ matrix.arch }}" == "mmips" ] || [ "${{ matrix.arch }}" == "mipsbe" ] || [ "${{ matrix.arch }}" == "smips" ] || [ "${{ matrix.arch }}" == "tile" ] || [ "${{ matrix.arch }}" == "ppc" ]; then
sudo -E python3 patch.py npk routeros.npk
sudo -E python3 npk.py sign routeros.npk routeros-${{$LATEST_VERSION}}$ARCH.npk
sudo -E python3 npk.py sign routeros.npk routeros-$LATEST_VERSION$ARCH.npk
sudo unzip routeros.zip -d tmp
NPK_FILES=$(find ./tmp/*.npk)
for file in $NPK_FILES; do
Expand Down

0 comments on commit f6073fa

Please sign in to comment.