mirror of
https://github.com/elseif/MikroTikPatch
synced 2026-07-17 18:49:41 +00:00
Update mikrotik_patch_7.yml
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
97974bd9c6
commit
5137e190ac
12
.github/workflows/mikrotik_patch_7.yml
vendored
12
.github/workflows/mikrotik_patch_7.yml
vendored
@ -88,14 +88,14 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
sudo apt-get update > /dev/null
|
sudo apt-get update > /dev/null
|
||||||
|
|
||||||
echo "{\"arch\": \"${{ matrix.arch }}\", \"channel\": \"${{ matrix.channel }}\", \"latest_version\": \"$LATEST_VERSION\"}" > ${{ matrix.arch }}_${{ matrix.channel }}_latest_version.json
|
echo "{\"arch\": \"${{ matrix.arch }}\", \"channel\": \"${{ matrix.channel }}\", \"latest_version\": \"$LATEST_VERSION\"}" > latest_version_${{ matrix.arch }}_${{ matrix.channel }}.json
|
||||||
echo "has_new_version=false" >> $GITHUB_OUTPUT
|
echo "has_new_version=false" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.arch }}_${{ matrix.channel }}_latest_version
|
name: latest_version_${{ matrix.arch }}_${{ matrix.channel }}
|
||||||
path: ${{ matrix.arch }}_${{ matrix.channel }}_latest_version.json
|
path: latest_version_${{ matrix.arch }}_${{ matrix.channel }}.json
|
||||||
|
|
||||||
- name: Cache Squashfs
|
- name: Cache Squashfs
|
||||||
if: steps.get_latest.outputs.has_new_version == 'true'
|
if: steps.get_latest.outputs.has_new_version == 'true'
|
||||||
@ -484,10 +484,12 @@ jobs:
|
|||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
pattern: latest_version_*
|
||||||
|
merge-multiple: true
|
||||||
- name: Create Packages CSV File
|
- name: Create Packages CSV File
|
||||||
run: |
|
run: |
|
||||||
for file in artifacts/*.json; do
|
for file in artifacts/latest_version_*.json; do
|
||||||
arch_channel=$(basename "$file" .json)
|
arch_channel=$(basename "$file" .json | sed 's/latest_version_//')
|
||||||
arch=$(echo "$arch_channel" | cut -d'_' -f1)
|
arch=$(echo "$arch_channel" | cut -d'_' -f1)
|
||||||
channel=$(echo "$arch_channel" | cut -d'_' -f2)
|
channel=$(echo "$arch_channel" | cut -d'_' -f2)
|
||||||
latest_version=$(jq -r '.latest_version' "$file")
|
latest_version=$(jq -r '.latest_version' "$file")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user