Upgrade actions/cache and action-gh-release versions

Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
elseif 2026-04-20 16:00:24 +08:00 committed by GitHub
parent 7a6fdb6323
commit 0a270a1108
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -207,7 +207,7 @@ jobs:
- name: Cache mikrotik-${{ env.LATEST_VERSION }}${{ env.ARCH }}.iso - name: Cache mikrotik-${{ env.LATEST_VERSION }}${{ env.ARCH }}.iso
if: steps.get_latest.outputs.has_new_version == 'true' && (matrix.arch == 'x86' || matrix.arch == 'arm64') if: steps.get_latest.outputs.has_new_version == 'true' && (matrix.arch == 'x86' || matrix.arch == 'arm64')
id: cache-mikrotik id: cache-mikrotik
uses: actions/cache@v4 uses: actions/cache@v5
with: with:
path: | path: |
mikrotik.iso mikrotik.iso
@ -222,7 +222,7 @@ jobs:
- name: Cache refind - name: Cache refind
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch == 'x86' if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch == 'x86'
id: cache-refind id: cache-refind
uses: actions/cache@v4 uses: actions/cache@v5
with: with:
path: refind-bin-0.14.2.zip path: refind-bin-0.14.2.zip
key: refind key: refind
@ -332,7 +332,7 @@ jobs:
- name: Cache chr-${{ env.LATEST_VERSION }}${{ env.ARCH }}.img.zip - name: Cache chr-${{ env.LATEST_VERSION }}${{ env.ARCH }}.img.zip
if: steps.get_latest.outputs.has_new_version == 'true' && (matrix.arch == 'x86' || matrix.arch == 'arm64') if: steps.get_latest.outputs.has_new_version == 'true' && (matrix.arch == 'x86' || matrix.arch == 'arm64')
id: cache-chr-img id: cache-chr-img
uses: actions/cache@v4 uses: actions/cache@v5
with: with:
path: | path: |
chr.img chr.img
@ -588,7 +588,7 @@ jobs:
- name: Cache all_packages${{ env.ARCH }}-${{ env.LATEST_VERSION }}.zip - name: Cache all_packages${{ env.ARCH }}-${{ env.LATEST_VERSION }}.zip
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch != 'x86' && matrix.arch != 'arm64' if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch != 'x86' && matrix.arch != 'arm64'
id: cache-all-packages id: cache-all-packages
uses: actions/cache@v4 uses: actions/cache@v5
with: with:
path: all_packages.zip path: all_packages.zip
key: all_packages${{ env.ARCH }}-${{ env.LATEST_VERSION }}.zip key: all_packages${{ env.ARCH }}-${{ env.LATEST_VERSION }}.zip
@ -602,7 +602,7 @@ jobs:
- name: Cache Main package routeros-${{ env.LATEST_VERSION }}${{ env.ARCH }}.npk - name: Cache Main package routeros-${{ env.LATEST_VERSION }}${{ env.ARCH }}.npk
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch != 'x86' && matrix.arch != 'arm64' if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch != 'x86' && matrix.arch != 'arm64'
id: cache-main-package id: cache-main-package
uses: actions/cache@v4 uses: actions/cache@v5
with: with:
path: routeros.npk path: routeros.npk
key: routeros-${{ env.LATEST_VERSION }}${{ env.ARCH }}.npk key: routeros-${{ env.LATEST_VERSION }}${{ env.ARCH }}.npk
@ -672,7 +672,7 @@ jobs:
- name: Cache NetInstall ${{ env.LATEST_VERSION }}${{ env.ARCH }} - name: Cache NetInstall ${{ env.LATEST_VERSION }}${{ env.ARCH }}
if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch == 'x86' && env.RELEASE == 'true' if: steps.get_latest.outputs.has_new_version == 'true' && matrix.arch == 'x86' && env.RELEASE == 'true'
id: cache-netinstall id: cache-netinstall
uses: actions/cache@v4 uses: actions/cache@v5
with: with:
path: | path: |
netinstall.zip netinstall.zip
@ -775,7 +775,7 @@ jobs:
- name: Create Release tag ${{ env.LATEST_VERSION }} ${{ env.ARCH }} - name: Create Release tag ${{ env.LATEST_VERSION }} ${{ env.ARCH }}
if: steps.get_latest.outputs.has_new_version == 'true' && env.RELEASE == 'true' if: steps.get_latest.outputs.has_new_version == 'true' && env.RELEASE == 'true'
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v3
with: with:
name: "RouterOS ${{ env.LATEST_VERSION }} ${{ env.ARCH }}" name: "RouterOS ${{ env.LATEST_VERSION }} ${{ env.ARCH }}"
body_path: "CHANGELOG" body_path: "CHANGELOG"