From bb71a4c77b7ffedfa915390f2ccf6f734d541094 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Mon, 30 Aug 2021 03:29:30 -0700 Subject: [PATCH] CI: Prefix checkinstall version to avoid errors --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a406285c..58717147 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -334,9 +334,14 @@ jobs: working-directory: ${{ github.workspace }}/obs-websocket shell: bash run: | + if [ "${{ env.GIT_TAG }}" ] ; then \ # If git hash is used as version, it must be prefixed by `1-` in order to be accepted by checkinstall + CHECKINSTALL_VERSION=${{ env.PACKAGE_VERSION }} ; \ + else \ + CHECKINSTALL_VERSION="1-${{ env.PACKAGE_VERSION }}" ; \ + fi cd ./build sudo checkinstall -y --type=debian --fstrans=no -nodoc \ - --backup=no --deldoc=yes --install=no --pkgname=obs-websocket --pkgversion=${{ env.PACKAGE_VERSION }} \ + --backup=no --deldoc=yes --install=no --pkgname=obs-websocket --pkgversion="$CHECKINSTALL_VERSION" \ --pkglicense="GPLv2.0" --maintainer="${{ github.event.pusher.email }}" --pkggroup="video" \ --pkgsource="${{ github.event.repository.html_url }}" \ --requires="obs-studio,libqt5network5,libqt5concurrent5,qt5-image-formats-plugins" \