Skip to content

Commit

Permalink
debug Action
Browse files Browse the repository at this point in the history
  • Loading branch information
per2jensen committed Mar 10, 2024
1 parent bee1ab1 commit 33d0f38
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,9 @@ jobs:

- name: run packaging script, install and run dar-backup
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
LATEST_DEV=$(git tag|grep -P "DEV\d.\d"|sort|tail -n1)
echo LATEST_DEV tag: "$LATEST_DEV"
chmod +x $GITHUB_WORKSPACE/test/test-mk-release-on-dev.sh
$GITHUB_WORKSPACE/test/test-mk-release-on-dev.sh
$GITHUB_WORKSPACE/test/test-mk-release-on-dev.sh "$LATEST_DEV"
2 changes: 1 addition & 1 deletion test/mk-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# $1 is the tag to package

if [ -z "${1}" ]; then echo "tag not given, exiting"; exit; fi
if [ -z "${1}" ]; then echo "tag not given, exiting"; exit 1; fi
echo tag to create release from: \""$1"\"

TAG=$(grep -P -o "^v\d+\.\d+\.\d+$" <<< "$1")
Expand Down
9 changes: 8 additions & 1 deletion test/test-mk-release-on-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
# - unpack the tar file and run the installer
# - run the backup up "-d dar-backup"

if [[ -n "$1" ]]; then
LATEST_DEV="$1"
echo \$1: "$1"
fi

TEST_RESULT=0

SCRIPTPATH=$(realpath "$0")
Expand All @@ -18,7 +23,9 @@ grep "TAG=" /tmp/mk-release.sh


# latest DEV tag
LATEST_DEV=$(git tag|grep -P "DEV\d.\d"|sort|tail -n1)
if [[ "$LATEST_DEV" == "" ]]; then
LATEST_DEV=$(git tag|grep -P "DEV\d.\d"|sort|tail -n1)
fi
echo LATEST_DEV: "$LATEST_DEV"
# build a "release" based on latest DEV tag
/tmp/mk-release.sh "$LATEST_DEV"
Expand Down

0 comments on commit 33d0f38

Please sign in to comment.