Skip to content

Commit a6b8f65

Browse files
committed
fix: make version parameter optional in release workflow
1. Changed version parameter from required to optional in GitHub workflow 2. Fixed spec file formatting by aligning Version and Release fields 3. Added %{?dist} macro to Release field for proper RPM building The changes make the release workflow more flexible by allowing version- less releases while maintaining proper RPM spec file formatting and distribution tagging. This helps with automated release processes and ensures consistent package building across different distributions. fix: 在发布工作流中使版本参数可选 1. 将 GitHub 工作流中的版本参数从必填改为可选 2. 修复 spec 文件格式,对齐 Version 和 Release 字段 3. 在 Release 字段添加 %{?dist} 宏以支持正确的 RPM 构建 这些变更使发布工作流更加灵活,允许无版本号的发布,同时保持 RPM spec 文件 的正确格式和分发标签。这有助于自动化发布流程并确保在不同发行版上一致的软 件包构建。
1 parent 6ff5c37 commit a6b8f65

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/call-auto-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
version:
66
description: 'Release version (e.g., 1.0.0)'
77
type: string
8-
required: true
8+
required: false
99
name:
1010
description: 'The name of the person to release the version'
1111
type: string

rpm/dtkgui.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Name: dtkgui
2-
Version: 5.7.17
3-
Release: 1
2+
Version: 5.7.17
3+
Release: 1%{?dist}
44
Summary: Deepin dtkgui
55
License: LGPLv3+
66
URL: https://github.com/linuxdeepin/dtkgui

0 commit comments

Comments
 (0)