mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 11:42:18 +08:00
Update update_singbox_core.yaml
This commit is contained in:
parent
2313647bd2
commit
94b9c62691
9
.github/workflows/update_singbox_core.yaml
vendored
9
.github/workflows/update_singbox_core.yaml
vendored
|
@ -1,8 +1,13 @@
|
||||||
name: Update Sing-Box Core
|
name: Update Sing-Box Core
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: 'version of singbox, such as 1.7.8'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
env:
|
env:
|
||||||
|
download_version: ${{ github.event.inputs.version }}
|
||||||
download_project: SagerNet/sing-box
|
download_project: SagerNet/sing-box
|
||||||
jobs:
|
jobs:
|
||||||
Update:
|
Update:
|
||||||
|
@ -18,7 +23,7 @@ jobs:
|
||||||
tar xf upx-3.93-amd64_linux.tar.xz
|
tar xf upx-3.93-amd64_linux.tar.xz
|
||||||
- name: Download Core
|
- name: Download Core
|
||||||
run: |
|
run: |
|
||||||
download_version=$(curl -s -L -o /dev/null -w '%{url_effective}' https://github.com/${download_project}/releases/latest | grep -oE "[^/]+$" | awk -F 'v' '{print $2}')
|
#download_version=$(curl -s -L -o /dev/null -w '%{url_effective}' https://github.com/${download_project}/releases/latest | grep -oE "[^/]+$" | awk -F 'v' '{print $2}')
|
||||||
echo "download_version=${download_version}" >> ${GITHUB_ENV}
|
echo "download_version=${download_version}" >> ${GITHUB_ENV}
|
||||||
archs=(386 amd64 armv7 arm64)
|
archs=(386 amd64 armv7 arm64)
|
||||||
new_name=(386 amd64 armv7 armv8)
|
new_name=(386 amd64 armv7 armv8)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user