Skip to content

Commit 0c90452

Browse files
authored
use readable version control (#41)
* 更新 RELEASE_INFO * 更新 release.yml * 更新 RELEASE_INFO * 更新 _build-apk-reusable.yml * 更新 delete_branch.yml
1 parent 1b0b165 commit 0c90452

4 files changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/_build-apk-reusable.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,16 @@ jobs:
9494
if [ "$PRERELEASE" = "false" ]; then
9595
VER_SUFFIX=""
9696
elif [ '${{ inputs.build_type }}' = "release" ]; then
97-
VER_SUFFIX="-dev-$SHA"
97+
VER_SUFFIX="-preRelease-$SHA"
9898
else
99-
VER_SUFFIX="-devDebug-$SHA"
99+
VER_SUFFIX="-preDebug-$SHA"
100100
fi
101101
echo "ver_suffix=$VER_SUFFIX" >> $GITHUB_OUTPUT
102102
103103
# ---- Publish Only ----
104104
if [ '${{ inputs.override_releaseOrBuild }}' = "true" ]; then
105105
TITLE='${{ inputs.override_title }}'
106-
#[ -z "$TITLE" ] && TITLE="${VER_NAME} dev$(date +%Y%m%d)"
106+
#[ -z "$TITLE" ] && TITLE="${VER_NAME}-pre-$(date +%Y%m%d)"
107107
echo "title=$TITLE" >> $GITHUB_OUTPUT
108108
109109
BRANCH='${{ inputs.override_branch }}'

.github/workflows/delete_branch.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
### TIME:251031
2+
3+
4+
5+
16
name: Delete Any Branch
27

38
on:
49
workflow_dispatch:
510
inputs:
6-
branch_to_delete:
7-
description: 'Branch to delete'
8-
required: true
9-
default: 'kkgit2008-patch-1'
1011
tip1:
1112
description: 'Tip 1'
1213
required: false
@@ -15,6 +16,10 @@ on:
1516
description: 'Tip 2'
1617
required: false
1718
default: 'Run on default branch, DO NOT change!'
19+
branch_to_delete:
20+
description: 'Branch to delete'
21+
required: true
22+
default: 'kkgit2008-patch-1'
1823

1924
jobs:
2025
delete:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
TITLE_SUFFIX=""
5656
else
5757
DATE=$(date +%Y%m%d)
58-
TITLE_SUFFIX=" dev${DATE}"
58+
TITLE_SUFFIX="-pre-${DATE}"
5959
fi
6060
TITLE=$(echo "$CONTENT" | grep '^TITLE=' | cut -d= -f2- | sed 's/^[[:space:]]*//;s/[[:space:]]*$//' || true)
6161
if [ -z "$TITLE" ]; then
@@ -81,7 +81,7 @@ jobs:
8181
RAW_TAG="${{ steps.info.outputs.ver_name }}"
8282
PRERELEASE="${{ steps.info.outputs.prerelease }}"
8383
SHORT_SHA="${{ steps.sha.outputs.short_sha }}"
84-
TAG_SUFFIX="-dev-${SHORT_SHA}"
84+
TAG_SUFFIX="-pre-${SHORT_SHA}"
8585
if [ "$PRERELEASE" = "false" ]; then
8686
echo "final_tag=${RAW_TAG}" >> $GITHUB_OUTPUT
8787
else

RELEASE_INFO

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
## ---------------------------------------------------------------------------
1010
## [Optional] [Only for release]
1111
## ---------------------------------------------------------------------------
12-
## Release title (default "VER_NAME dev$YYYYMMDD")
12+
## Release title (default "VER_NAME -pre-$YYYYMMDD")
1313
## ---------------------------------------------------------------------------
14-
#TITLE=v2.7.1-beta3 dev$YYYYMMDD
14+
#TITLE=v2.7.1-beta3-pre-$YYYYMMDD
1515

1616

1717
## ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)