From cd67b01fcfcf638d6738cccd77cfeecd7396705b Mon Sep 17 00:00:00 2001 From: Etienne Millon Date: Tue, 21 May 2024 09:37:18 +0200 Subject: [PATCH] ci: add version to built binaries (#10537) Signed-off-by: Etienne Millon --- .github/workflows/binaries.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml index 04d7569c2a8..f9bc469b59d 100644 --- a/.github/workflows/binaries.yml +++ b/.github/workflows/binaries.yml @@ -25,7 +25,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 # for git describe - uses: cachix/install-nix-action@v22 + - run: echo "(version $(git describe --always --dirty --abbrev=7))" >> dune-project - run: nix build ${{ matrix.installable }} - uses: actions/upload-artifact@v4 with: