Skip to content

Commit 0c21c2e

Browse files
committed
bump to v20251123
- improved simple-entry.sh
1 parent c39f4f1 commit 0c21c2e

File tree

5 files changed

+46
-10
lines changed

5 files changed

+46
-10
lines changed

.github/workflows/shell.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: Upload binaries to release
4141
uses: svenstaro/upload-release-action@v2
42-
if: startsWith(github.ref, 'refs/tags/v')
42+
if: startsWith(github.ref, 'refs/tags/v') && false
4343
with:
4444
repo_token: ${{ secrets.GITHUB_TOKEN }}
4545
file: ./bash.sh
@@ -55,3 +55,36 @@ jobs:
5555
body: |
5656
Release of bash.sh, a shellscript toolset and starting point, built from commit ${{ env.SHORT_SHA }}, is now available.
5757
58+
- name: Create Release
59+
id: create_release
60+
uses: softprops/action-gh-release@v2.4.1 # pin to v2.2.1 to solve 422 error, see its issue #616
61+
if: ${{ startsWith(github.ref, 'refs/tags/v')
62+
env:
63+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
GITHUB_TOKEN: ${{ github.token }}
65+
with:
66+
generate_release_notes: true
67+
# discussion_category_name: Announcements
68+
# tag_name: ${{ github.ref }}
69+
tag_name: ${{ github.event.release.tag_name }}
70+
# release_name: Release ${{ github.ref }}
71+
draft: false
72+
prerelease: false
73+
append_body: true
74+
preserve_order: true
75+
# body_path: relnotes.md
76+
body: |
77+
Release of bash.sh, a shellscript toolset and starting point, built from commit ${{ env.SHORT_SHA }}, is now available.
78+
79+
${{ github.event.head_commit.message }}
80+
81+
# body: |
82+
# This release was created by: ${{ github.event.sender.login }}
83+
# Release of ${{ github.ref }}, built from commit ${{ env.SHORT_SHA }}, is now available.
84+
# files: |
85+
# ./cmdr-*.*
86+
# build/*-*${{ matrix.config.build_type }}*-*.*
87+
# files: |
88+
# build/packages/*${{ matrix.config.artifact }}
89+
files: |
90+
./bash.sh

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# HISTORY
22

3+
- v20251123
4+
- improved simple-entry.sh
5+
36
- v20251118
47
- improved `repl_bashsh_block`
58

bash-lite.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
# bash.sh:
1010
# Standard Template for bash/zsh developing.
11-
# Version: v20251118
11+
# Version: v20251123
1212
# License: MIT
1313
# Site: https://github/hedzr/bash.sh
1414
#
@@ -106,7 +106,7 @@ _my_main_do_sth() {
106106

107107
########################################################
108108

109-
#### HZ Tail BEGIN #### v20251118 ####
109+
#### HZ Tail BEGIN #### v20251123 ####
110110
in_debug() { (($DEBUG)); }
111111
in_provisioning() { (($PROVISIONING)); } ## return exit status as true if $PROVISIONING is not equal to 0
112112
is_root() { [ "$(id -u)" = "0" ]; }
@@ -739,7 +739,7 @@ main_do_sth() {
739739
fi
740740
((${HAS_END:-0})) && { debug_begin && echo -n 'Success!' && debug_end; } || return $res_ # { [ $# -eq 0 ] && :; }
741741
}
742-
BASH_SH_VERSION=v20251118
742+
BASH_SH_VERSION=v20251123
743743
DEBUG=${DEBUG:-0}
744744
# trans_readlink() { DIR="${1%/*}" && (cd $DIR && pwd -P); }
745745
# is_darwin && realpathx() { [[ $1 == /* ]] && echo "$1" || { DIR="${1%/*}" && DIR=$(cd $DIR && pwd -P) && echo "$DIR/$(basename $1)"; }; } || realpathx() { readlink -f $*; }
@@ -749,4 +749,4 @@ in_sourcing && {
749749
if_vagrant && [ "$SCRIPT" == "/tmp/vagrant-shell" ] && { [ -d $CD/ops.d ] || CD=/vagrant/bin; }
750750
[ -L "$SCRIPT" ] && debug linked script found && SCRIPT=$(realpathx "$SCRIPT") && CD=$(dirname "$SCRIPT")
751751
in_sourcing || main_do_sth "$@"
752-
#### HZ Tail END #### v20251118 ####
752+
#### HZ Tail END #### v20251123 ####

bash.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
# bash.sh:
1010
# Standard Template for bash/zsh developing.
11-
# Version: v20251118
11+
# Version: v20251123
1212
# License: MIT
1313
# Site: https://github.com/hedzr/bash.sh
1414
#
@@ -304,7 +304,7 @@ repl_bashsh_block() {
304304

305305
########################################################
306306

307-
#### HZ Tail BEGIN #### v20251118 ####
307+
#### HZ Tail BEGIN #### v20251123 ####
308308
in_debug() { (($DEBUG)); }
309309
in_provisioning() { (($PROVISIONING)); } ## return exit status as true if $PROVISIONING is not equal to 0
310310
is_root() { [ "$(id -u)" = "0" ]; }
@@ -1399,7 +1399,7 @@ main_do_sth() {
13991399
# disabling this logic is still simple by defining HAS_END=1.
14001400
((${HAS_END:-0})) && { debug_begin && echo -n 'Success!' && debug_end; } || return $result_code # { [ $# -eq 0 ] && :; }
14011401
}
1402-
BASH_SH_VERSION=v20251118
1402+
BASH_SH_VERSION=v20251123
14031403
DEBUG=${DEBUG:-0}
14041404
PROVISIONING=${PROVISIONING:-0}
14051405
SUDO=sudo && [ "$(id -u)" = "0" ] && SUDO= || :
@@ -1430,4 +1430,4 @@ path_in_orb_host "$0" && : || { [ -L "$SCRIPT" ] && debug "$(safety "linked scri
14301430
# CD=$(cd `dirname "$0"`;pwd)
14311431
# It will open a sub-shell to print the folder name of the running shell-script.
14321432
in_sourcing && _bash_sh_load_import_files || main_do_sth "$@"
1433-
#### HZ Tail END #### v20251118 ####
1433+
#### HZ Tail END #### v20251123 ####

simple-entry.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ if_sysv() { [[ -f /etc/init.d/cron && ! -L /etc/init.d/cron ]]; }
117117
# fi
118118

119119
###
120-
CD="$(cd $(dirname "$0") && pwd)" && BASH_SH_VERSION=v20251118 && DEBUG=${DEBUG:-0} && PROVISIONING=${PROVISIONING:-0}
120+
CD="$(cd $(dirname "$0") && pwd)" && BASH_SH_VERSION=v20251123 && DEBUG=${DEBUG:-0} && PROVISIONING=${PROVISIONING:-0}
121121
SUDO=sudo && { [ "$(id -u)" = "0" ] && SUDO= || :; }
122122
LS_OPT="--color" && { is_darwin && LS_OPT="-G" || :; }
123123
if (($#)); then

0 commit comments

Comments
 (0)