From 4163542125925e0b098d43e1471c86e1bd935cdd Mon Sep 17 00:00:00 2001 From: r4sas Date: Mon, 13 May 2024 00:32:09 +0000 Subject: [PATCH] [gha] short commit hashes for deb packages Signed-off-by: r4sas --- .github/workflows/build-deb.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-deb.yml b/.github/workflows/build-deb.yml index b4975e5e..597dc211 100644 --- a/.github/workflows/build-deb.yml +++ b/.github/workflows/build-deb.yml @@ -36,12 +36,16 @@ jobs: with: fetch-depth: 0 + - name: Commit Hash + id: commit + uses: prompt/actions-commit-hash@v3.0.0 + - name: Build package uses: jtdor/build-deb-action@v1 with: docker-image: debian:${{ matrix.dist }}-slim buildpackage-opts: --build=binary --no-sign - before-build-hook: debchange --controlmaint --local "+${{ github.sha }}~${{ matrix.dist }}" -b --distribution ${{ matrix.dist }} "CI build" + before-build-hook: debchange --controlmaint --local "+${{ steps.commit.outputs.short }}~${{ matrix.dist }}" -b --distribution ${{ matrix.dist }} "CI build" extra-build-deps: devscripts git - name: Upload package