From 923bf0539264df9d7b59c366f8c8802468a42e08 Mon Sep 17 00:00:00 2001 From: s3lph Date: Fri, 29 Nov 2024 01:32:09 +0100 Subject: [PATCH] fix(ci): get version number in ci checkout --- .forgejo/workflows/package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/package.yml b/.forgejo/workflows/package.yml index f58eb2c..7ab2c29 100644 --- a/.forgejo/workflows/package.yml +++ b/.forgejo/workflows/package.yml @@ -15,7 +15,7 @@ jobs: mkdir -p \ package/debian/barcode-utils/usr/bin \ package/debian/barcode-utils/usr/share/webextensions - sed -re "s/__VERSION__/0.$(git rev-list --count HEAD)-1/g" -i package/debian/barcode-utils/DEBIAN/control + sed -re "s/__VERSION__/0.$(git rev-list --count ${GITHUB_REF_NAME})-1/g" -i package/debian/barcode-utils/DEBIAN/control # barcode-websocket-server cp barcode-websocket-server package/debian/barcode-utils/usr/bin/ # webextension-tabfocus