mirror of
https://github.com/roacn/openwrt-packages.git
synced 2025-01-08 11:57:31 +08:00
🚀 Sync 2023-05-22 23:35
This commit is contained in:
parent
2a06d3dd94
commit
a13a32e96c
@ -49,7 +49,7 @@ jobs:
|
||||
env:
|
||||
url_release: https://api.github.com/repos/${{ github.repository }}/releases/latest
|
||||
run: |
|
||||
latest_version=$(awk -F ':=' '/PKG_VERSION|PKG_RELEASE/ {print $2}' Makefile | sed ':a;N;s/\n$//;s/\n/-/;ba')
|
||||
latest_version=$(grep -oP 'PKG_VERSION:=\K.*' Makefile | sed 's/^/v/')
|
||||
latest_release=$(wget -qO- -t1 -T2 ${{env.url_release}} | awk -F '"' '/tag_name/{print $4}')
|
||||
has_update=$([ "${latest_version}" != "${latest_release}" ] && echo true || echo false)
|
||||
echo "latest_version=${latest_version}" >> $GITHUB_OUTPUT
|
||||
@ -64,6 +64,7 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
name: For Lean's LEDE 18.06 LuCI
|
||||
tag_name: ${{steps.check_version.outputs.latest_version}}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user