From c7a4e68e8f1a566e2ec62ca1dd573d7e1953af07 Mon Sep 17 00:00:00 2001 From: Neshura Date: Fri, 29 Dec 2023 00:43:59 +0100 Subject: [PATCH] Fix debian revision extraction --- .forgejo/workflows/build+release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/build+release.yml b/.forgejo/workflows/build+release.yml index f28083e..bc49d2d 100644 --- a/.forgejo/workflows/build+release.yml +++ b/.forgejo/workflows/build+release.yml @@ -65,7 +65,7 @@ jobs: cargo deb DEBIAN_REF=$(echo ${{ github.ref_name }} | tr - \~) echo "DEBIAN_REF=$DEBIAN_REF" >> dist/build.env - DEBIAN_REV=-$(cat Cargo.toml | grep -E "(^|\|)version =" | cut -f2- -d= | tr -d \" | tr -d " ") + DEBIAN_REV=-$(cat Cargo.toml | grep -E "(^|\|)revision =" | cut -f2- -d= | tr -d \" | tr -d " ") echo "DEBIAN_REV=$DEBIAN_REV" >> dist/build.env mv target/debian/${{ github.event.repository.name }}_"$DEBIAN_REF""$DEBIAN_REV"_amd64.deb dist/${{ github.event.repository.name }}_"$DEBIAN_REF""$DEBIAN_REV"_amd64.deb -