This repository was archived by the owner on Jul 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
feat: Support VERSION file and auto release #262
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| secrets: inherit | ||
| with: | ||
| version: ${{ inputs.version }} | ||
| name: ${{ inputs.name }} | ||
| email: ${{ inputs.email }} | ||
| timezone: ${{ inputs.timezone }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| linglong.yaml | ||
| VERSION |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
Suggested change
|
||||||||||||||||||||
| project(DtkDeclarative | ||||||||||||||||||||
| VERSION "${DTK_VERSION}" | ||||||||||||||||||||
| DESCRIPTION "DTK Declarative module" | ||||||||||||||||||||
|
|
||||||||||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 6.0.36 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| @version@ |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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:
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.