Skip to content
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 (bug_risk): Pin the reusable workflow to a specific tag or commit

Referencing 'master' can introduce instability if upstream changes unexpectedly. Use a fixed tag or commit SHA to ensure consistent workflow behavior.

Suggested implementation:

    uses: linuxdeepin/.github/.github/workflows/auto-release.yml@v1.2.3

Replace v1.2.3 with the actual tag or commit SHA you want to pin to, based on the version of the reusable workflow you intend to use.

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")
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 @@
5.7.16
1 change: 1 addition & 0 deletions VERSION.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@version@