1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 20:54:51 +00:00
This commit is contained in:
deadc0de6
2024-08-28 15:40:09 +02:00
parent 9797b3aecd
commit 70e6e90acd

View File

@@ -9,13 +9,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Prepare AUR package
env:
RELEASE_TAG: ${{ github.ref }}
run: |
version=""
if [ -n "${RELEASE_TAG}" ]; then
version=$(echo "${RELEASE_TAG}" | sed 's#^.*v##g')
else
if [ hash git &>/dev/null ]; then
version=$(git describe --abbrev=0 --tags | sed 's/^v//g')
fi
if [ -z "${version}" ]; then
version=$(cat dotdrop/version.py | grep version | sed 's/^.*= .\(.*\).$/\1/g')
fi
[ -z "${version}" ] && exit 1