Compare commits

...

7 Commits

2 changed files with 21 additions and 16 deletions

View File

@ -43,23 +43,23 @@ jobs:
# with:
# requirements-file: .github/tex/packages.test.txt
# ##
# - name: "setup TeX Live (via teatimeguest)"
# # tlmgr needs updates and fails
# uses: teatimeguest/setup-texlive-action@v1
# with:
# package-file: .github/tex/packages.test.txt
# ##
- name: "setup TeX Live (via paolobrasolin)"
uses: paolobrasolin/setup-texlive-action@v1
- name: "setup TeX Live (via teatimeguest)"
uses: teatimeguest/setup-texlive-action@v2
with:
profile-path: ${{ github.workspace }}/.github/tex/texlive.profile.txt
packages-path: ${{ github.workspace }}/.github/tex/packages.test.txt
package-file: .github/tex/packages.test.txt
##
# - name: "setup TeX Live (via paolobrasolin)"
# # # tlmgr needs updates and fails
# uses: paolobrasolin/setup-texlive-action@v1
# with:
# profile-path: ${{ github.workspace }}/.github/tex/texlive.profile.txt
# packages-path: ${{ github.workspace }}/.github/tex/packages.test.txt
- name: "install tikz-trackschematic"
run: chmod +x dev-install.sh && ./dev-install.sh -b
# - name: "install tikz-trackschematic"
# run: ./build.sh --local-dev-install
# - name: "test tikz-trackschematic"
# run: cd test && ./testing.sh && cd ..
# run: ./build.sh --test
# ## create varibale ${{ steps.tag.outputs.tag }}
# - name: "get tag"
@ -70,11 +70,11 @@ jobs:
# strip_v: false
# - name: "create tikz-trackschematic package"
# run: ./create-release.sh -v ${{ steps.tag.outputs.tag }}
# run: ./build.sh --release ${{ steps.tag.outputs.tag }} --batch-mode
## opening a debug console
- name: Setup upterm session
uses: lhotari/action-upterm@v1
with:
## limits ssh access and adds the ssh public keys of the listed GitHub users
limit-access-to-users: railtoolkit,kaat0
limit-access-to-users: railtoolkit,kaat0,apriljunge

View File

@ -42,9 +42,11 @@ RELEASE=0
process_arguments() {
while true; do
# loop condition - test for empty string:
if [ -z "$1" ]; then
break;
fi
# loop test
case $1 in
-h|--help)
print_usage
@ -120,7 +122,10 @@ check_zip() {
}
check_version_number() {
while [[ ! "$VERSION_STR" =~ ^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)?$ ]]; do
while true; do
# loop condition - test format of $VERSION_STR:
echo "$VERSION_STR" | egrep -q "v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)?" && break;
# loop test
if [ "$BATCHMODE" = 0 ]; then
echo "${RED}Your version '$VERSION_STR' has not the correct format!${COLOR_RESET}"
echo $n "Please specify as Semantic Versioning ( e.g. v1.0.0 ): $c"