Skip to content

Commit

Permalink
workflows: Fix wrong version on control deb package
Browse files Browse the repository at this point in the history
Signed-off-by: Rem01Gaming <[email protected]>
  • Loading branch information
Rem01Gaming committed Oct 9, 2024
1 parent a281394 commit 78e25fb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/pack-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
fi

0 comments on commit 78e25fb

Please sign in to comment.