From 4c476c23ee08eb8aa4e8aef285467bfb3d7139a0 Mon Sep 17 00:00:00 2001 From: qxa Date: Sat, 25 Oct 2025 15:58:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 3 +++ entrypoint.sh | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/action.yml b/action.yml index 18fb7ed..0c85f9c 100644 --- a/action.yml +++ b/action.yml @@ -30,6 +30,9 @@ inputs: platform: description: 要编译的平台,可选值linux/arm,linux/arm64,linux/amd64 required: false + script: + description: 上传完成后执行的脚本 + required: false runs: using: docker diff --git a/entrypoint.sh b/entrypoint.sh index 3a67372..fcf27ef 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -53,3 +53,9 @@ else echo "镜像不存在" exit 1 fi + +if [ -n "$INPUT_SCRIPT" ]; then + echo "存在自定义脚本" + echo "$INPUT_SCRIPT" + evel "$INPUT_SCRIPT" +fi