Skip to content
This repository was archived by the owner on Jul 15, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/call-auto-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Auto Release
on:
workflow_dispatch:
inputs:
version:
description: 'Release version (e.g., 1.0.0)'
type: string
required: true
name:
description: 'The name of the person to release the version'
type: string
required: false
email:
description: 'The email of the person to release the version'
type: string
required: false
timezone:
description: 'The timezone in the debian changelog file'
required: false
type: string
default: 'Asia/Shanghai'
workflow_call:
inputs:
version:
description: 'Release version (e.g., 1.0.0)'
type: string
required: true
name:
description: 'The name of the person to release the version'
type: string
required: false
email:
description: 'The email of the person to release the version'
type: string
required: false
timezone:
description: 'The timezone in the debian changelog file'
required: false
type: string
default: 'Asia/Shanghai'

jobs:
auto_release:
uses: linuxdeepin/.github/.github/workflows/auto-release.yml@master

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Pin reusable workflow reference

Use a commit SHA or tag instead of 'master' to avoid unexpected changes and ensure consistent workflow runs.

Suggested implementation:

  auto_release:
    uses: linuxdeepin/.github/.github/workflows/auto-release.yml@<COMMIT_SHA>
    secrets: inherit
    with:

Replace <COMMIT_SHA> with the actual commit SHA or a specific tag from the linuxdeepin/.github repository that you want to pin to. This ensures the workflow always uses the intended version.

secrets: inherit
with:
version: ${{ inputs.version }}
name: ${{ inputs.name }}
email: ${{ inputs.email }}
timezone: ${{ inputs.timezone }}
4 changes: 2 additions & 2 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Copyright: UnionTech Software Technology Co., Ltd.
License: CC-BY-4.0

# ci
Files: .github/* *.yml *.yaml .obs/*
Files: .github/* *.yml *.yaml .obs/* .syncexclude
Copyright: None
License: CC0-1.0

Expand All @@ -54,7 +54,7 @@ Copyright: None
License: CC0-1.0

# cmake
Files: *.cmake *CMakeLists.txt *.in
Files: *.cmake *CMakeLists.txt *.in VERSION
Copyright: None
License: CC0-1.0

Expand Down
2 changes: 2 additions & 0 deletions .syncexclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
linglong.yaml
VERSION
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.10)

set(DTK_VERSION "5.6.23" CACHE STRING "Define project version")
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" DTK_FILE_VERSION)
string(STRIP "${DTK_FILE_VERSION}" DTK_FILE_VERSION)
set(DTK_VERSION "${DTK_FILE_VERSION}" CACHE STRING "Define project version")
Comment on lines +3 to +5

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Consider documenting the management of the new version files.

Please add a brief note on how the VERSION file should be managed, either as a comment in CMakeLists.txt or in the developer documentation.

Suggested change
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" DTK_FILE_VERSION)
string(STRIP "${DTK_FILE_VERSION}" DTK_FILE_VERSION)
set(DTK_VERSION "${DTK_FILE_VERSION}" CACHE STRING "Define project version")
# The project version is read from the VERSION file in the source directory.
# To update the project version, edit the VERSION file and commit the change.
# The VERSION file should contain only the version string (e.g., 5.6.23) with no extra whitespace.
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" DTK_FILE_VERSION)
string(STRIP "${DTK_FILE_VERSION}" DTK_FILE_VERSION)
set(DTK_VERSION "${DTK_FILE_VERSION}" CACHE STRING "Define project version")

project(DtkDeclarative
VERSION "${DTK_VERSION}"
DESCRIPTION "DTK Declarative module"
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.0.36
1 change: 1 addition & 0 deletions VERSION.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@version@