From 7e529c5c79d13b6c803d0528b43433c6a0ac095c Mon Sep 17 00:00:00 2001 From: fubark Date: Wed, 22 Feb 2023 09:27:00 -0500 Subject: [PATCH] ci. --- .github/workflows/latest-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/latest-build.yml b/.github/workflows/latest-build.yml index 790007994..ba34276dc 100644 --- a/.github/workflows/latest-build.yml +++ b/.github/workflows/latest-build.yml @@ -140,7 +140,7 @@ jobs: version=$(zig build version) echo "SHORT_VERSION=$version" >> $GITHUB_ENV git fetch --all --tags - echo "BUILD=$(git rev-list --count $version-init..master)" >> $GITHUB_ENV + echo "BUILD=$(git rev-list --count $version..$GITHUB_SHA)" >> $GITHUB_ENV - name: Get version. (windows) if: env.BUILD_HOST == 'windows-2022' @@ -149,7 +149,7 @@ jobs: version=$(zig build version) echo "SHORT_VERSION=$version" >> $env:GITHUB_ENV git fetch --all --tags - echo "BUILD=$(git rev-list --count $version-init..master)" >> $env:GITHUB_ENV + echo "BUILD=$(git rev-list --count $version..$GITHUB_SHA)" >> $env:GITHUB_ENV - name: Cache. #if: env.BUILD_TARGET != 'x86_64-windows-gnu'