Skip to content

Commit 4163542

Browse files
committed
[gha] short commit hashes for deb packages
Signed-off-by: r4sas <r4sas@i2pmail.org>
1 parent 6921c83 commit 4163542

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build-deb.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,16 @@ jobs:
3636
with:
3737
fetch-depth: 0
3838

39+
- name: Commit Hash
40+
id: commit
41+
uses: prompt/actions-commit-hash@v3.0.0
42+
3943
- name: Build package
4044
uses: jtdor/build-deb-action@v1
4145
with:
4246
docker-image: debian:${{ matrix.dist }}-slim
4347
buildpackage-opts: --build=binary --no-sign
44-
before-build-hook: debchange --controlmaint --local "+${{ github.sha }}~${{ matrix.dist }}" -b --distribution ${{ matrix.dist }} "CI build"
48+
before-build-hook: debchange --controlmaint --local "+${{ steps.commit.outputs.short }}~${{ matrix.dist }}" -b --distribution ${{ matrix.dist }} "CI build"
4549
extra-build-deps: devscripts git
4650

4751
- name: Upload package

0 commit comments

Comments
 (0)