From a4d074baacb73d1ab2d69fd6a3cb9cf963e216e3 Mon Sep 17 00:00:00 2001 From: yeshanshan Date: Fri, 27 Jun 2025 16:45:08 +0800 Subject: [PATCH] fix: make version parameter optional in release workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Changed the 'version' parameter from required to optional in the GitHub Actions workflow 2. This provides more flexibility when triggering releases 3. Allows for cases where version might be determined programmatically or isn't needed 4. Maintains backward compatibility while adding more workflow options fix: 在发布工作流中将版本参数设为可选 1. 将 GitHub Actions 工作流中的 'version' 参数从必填改为可选 2. 这为触发发布提供了更大的灵活性 3. 允许版本号通过程序确定或不需要版本号的情况 4. 在添加更多工作流选项的同时保持向后兼容性 --- .github/workflows/call-auto-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/call-auto-release.yml b/.github/workflows/call-auto-release.yml index 2908c9b9..3e16f7cc 100644 --- a/.github/workflows/call-auto-release.yml +++ b/.github/workflows/call-auto-release.yml @@ -5,7 +5,7 @@ on: version: description: 'Release version (e.g., 1.0.0)' type: string - required: true + required: false name: description: 'The name of the person to release the version' type: string