From 78e25fb131c7a63ed4841d5ddfda4dc94ea4ccbb Mon Sep 17 00:00:00 2001 From: Rem01Gaming Date: Wed, 9 Oct 2024 13:13:25 +0700 Subject: [PATCH] workflows: Fix wrong version on control deb package Signed-off-by: Rem01Gaming --- .github/workflows/pack-deb.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pack-deb.yml b/.github/workflows/pack-deb.yml index 78e9e15..5895ff9 100644 --- a/.github/workflows/pack-deb.yml +++ b/.github/workflows/pack-deb.yml @@ -28,16 +28,11 @@ jobs: cp -rv share/* ./out/deb/data/data/com.termux/files/usr/share/origami-kernel cp -rv src/* ./out/deb/data/data/com.termux/files/usr/bin cp -rv dpkg-conf ./out/deb/DEBIAN - sed -i "s/^Version: .*/Version: $(cat share/version)-$(shell git rev-list HEAD --count)+$(shell git rev-parse --short HEAD)/" ./out/deb/DEBIAN/control + sed -i "s/^Version: .*/Version: $(cat share/version)-$(git rev-list HEAD --count)+$(git rev-parse --short HEAD)/" ./out/deb/DEBIAN/control chmod -Rv 755 ./out/deb/DEBIAN chmod -Rv 755 ./out/deb/data/data/com.termux/files/usr/bin chmod -Rv 777 ./out/deb/data/data/com.termux/files/usr/bin/* cd ./out/deb && dpkg -b . ../../origami-kernel.deb - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: origami-kernel.deb - path: ./ - name: Upload to telegram env: CHAT_ID: ${{ secrets.CHAT_ID }} @@ -52,4 +47,4 @@ jobs: if [ ! -z "${{ secrets.BOT_TOKEN }}" ]; then export VERSION=$(git rev-list --count HEAD) bash $GITHUB_WORKSPACE/.github/scripts/telegram_bot.sh $GITHUB_WORKSPACE/$DEB - fi \ No newline at end of file + fi