mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 11:01:45 +00:00
fix aur
This commit is contained in:
9
.github/workflows/aur-release.yml
vendored
9
.github/workflows/aur-release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user