From 798e03dfba4d2f3e8eb53023c46145c40905f434 Mon Sep 17 00:00:00 2001 From: Ing Date: Tue, 13 May 2025 18:01:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20debug=20=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E5=88=B0=20issues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/issues.yml | 20 +++++++++++++++ docs/issues.html | 48 +++++++++++++++++++++++++++++++++++- 2 files changed, 67 insertions(+), 1 deletion(-) diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index 6fc612ee..bef78a61 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -41,6 +41,8 @@ jobs: size = '' template = '' language= '' + sn = '' + macs = '' model = '' version = '' kernel = '' @@ -54,6 +56,8 @@ jobs: size = jsonbody.get('size', '') template = jsonbody.get('template', '') language = jsonbody.get('language', '') + sn = jsonbody.get('sn', '') + macs = jsonbody.get('macs', '') model = jsonbody.get('model', '') version = jsonbody.get('version', '') kernel = jsonbody.get('kernel', '') @@ -73,6 +77,8 @@ jobs: set_output("size", size) set_output("template", template) set_output("language", language) + set_output("sn", sn) + set_output("macs", macs) set_output("model", model) set_output("version", version) set_output("kernel", kernel) @@ -237,6 +243,20 @@ jobs: exit 1 fi + if [ -n "${{ env.sn }}" ]; then + echo "set sn: ${{ env.sn }}" + USER_CONFIG_FILE="rr/ws/mnt/p1/user-config.yml" + writeConfigKey "sn" "${{ env.sn }}" "${USER_CONFIG_FILE}" + fi + + if [ -n "${{ env.macs }}" ]; then + echo "set macs: ${{ env.macs }}" + USER_CONFIG_FILE="rr/ws/mnt/p1/user-config.yml" + MACS=($(echo "${{ env.macs }}" | sed 's/[:-]//g' | sed 's/.*/\U&/' | sed 's/[;,]/ /g')) + writeConfigKey "mac1" "${MACS[0]}" "${USER_CONFIG_FILE}" + writeConfigKey "mac2" "${MACS[1]}" "${USER_CONFIG_FILE}" + fi + if [ -n "${{ env.addons }}" ]; then echo "set addons: ${{ env.addons }}" USER_CONFIG_FILE="rr/ws/mnt/p1/user-config.yml" diff --git a/docs/issues.html b/docs/issues.html index 4a118b23..0dce40d5 100644 --- a/docs/issues.html +++ b/docs/issues.html @@ -36,12 +36,29 @@