File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,10 +86,16 @@ jobs:
8686 shell : bash
8787 run : |
8888 set -x
89- if [ "${{ github.event_name }}" = "pull_request" ]; then
89+ if [ "${{ github.event_name }}" == "pull_request" ]; then
9090 echo "tag=${{ github.head_ref }}" >> "${GITHUB_OUTPUT}"
9191 else
92- echo "tag=${{ github.ref_name }}" >> "${GITHUB_OUTPUT}"
92+ if [[ "${{ github.ref_type }}" == "tag" ]]; then
93+ TAG_COMMIT=$(git rev-list -n 1 ${{ github.ref }})
94+ BRANCH=$(git branch -r --contains "${TAG_COMMIT}" | sed 's/origin\///' | grep -v HEAD | head -n 1 | awk '{$1=$1};1')
95+ echo "tag=${BRANCH}" >> "${GITHUB_OUTPUT}"
96+ else
97+ echo "tag=${{ github.ref_name }}" >> "${GITHUB_OUTPUT}"
98+ fi
9399 fi
94100
95101 - name : ' Set image name output'
Original file line number Diff line number Diff line change @@ -54,7 +54,14 @@ mkdir -p "${out_path}"
5454tmp_dir=$( mktemp -ud /tmp/libtsl-dev-XXXXXX)
5555mkdir -p " ${tmp_dir} "
5656
57- curl -L " https://github.com/db-tu-dresden/TSL/releases/latest/download/libtsl-dev.tar.gz" -o ${tmp_dir} /libtsl-dev.tar.gz
57+ if type curl > /dev/null 2>&1 ; then
58+ curl -L " https://github.com/db-tu-dresden/TSL/releases/latest/download/libtsl-dev.tar.gz" -o ${tmp_dir} /libtsl-dev.tar.gz
59+ elif type wget > /dev/null 2>&1 ; then
60+ wget -O ${tmp_dir} /libtsl-dev.tar.gz " https://github.com/db-tu-dresden/TSL/releases/latest/download/libtsl-dev.tar.gz"
61+ else
62+ echo " Please install curl or wget to download the library"
63+ exit 1
64+ fi
5865tar -xzf " ${tmp_dir} /libtsl-dev.tar.gz" -C " ${tmp_dir} "
5966chmod 755 " ${tmp_dir} " /* .sh
6067supported_path=$( " ${tmp_dir} " /select_flavor.sh " ${tmp_dir} " )
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ The latest release is available under [Releases](https://github.com/db-tu-dresde
3535
3636To download the TSL to the current working directory, just run
3737~~~ console
38- curl -L -s "https://github.com/db-tu-dresden/TSL/releases/latest/download/install_tsl .sh" | /bin/bash
38+ curl -L -s "https://github.com/db-tu-dresden/TSL/releases/latest/download/setup_tsl .sh" | /bin/bash
3939~~~
4040
4141If you want to "install" the TSL (the header files will be placed at /usr/include/tsl), we prepared an ` rpm ` and a ` deb ` package.
You can’t perform that action at this time.
0 commit comments