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