File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,15 @@ jobs:
3838 - name : Determine latest OpenWrt SDK version
3939 id : sdk_version
4040 run : |
41- # Use wget or curl to scrape the OpenWrt download server and extract the latest SDK tar file URL
41+ # Use curl to scrape the OpenWrt download server and extract the latest SDK tar file URL
4242 SDK_URL=$(curl -s https://downloads.openwrt.org/snapshots/targets/ath79/generic/ | \
43- grep -oP 'href="\K[^"]*-gcc-[^"]+_musl.Linux-x86_64.tar.zst' | \
44- sort -V | tail -n 1)
43+ grep -oP 'href="openwrt-sdk-[^"]+\.tar\.zst"' | \
44+ sort -V | tail -n 1 | \
45+ sed 's/href="//' | sed 's/"//')
46+
4547 echo "Latest OpenWrt SDK URL: https://downloads.openwrt.org/snapshots/targets/ath79/generic/$SDK_URL"
48+
49+ # Save the SDK URL into an environment variable so it can be used in the next steps
4650 echo "sdk_url=https://downloads.openwrt.org/snapshots/targets/ath79/generic/$SDK_URL" >> $GITHUB_ENV
4751
4852 # Step 5: Download OpenWrt SDK if not cached
You can’t perform that action at this time.
0 commit comments