From 191aefa39f9c19c11c02b8bc6adad870e6e16aaf Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 25 Jan 2024 23:19:52 +0000 Subject: [PATCH] Adjust version detection in release workflow for build steps --- .github/workflows/release-source.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-source.yml b/.github/workflows/release-source.yml index 99ed0614db..d7f1d0b0b1 100644 --- a/.github/workflows/release-source.yml +++ b/.github/workflows/release-source.yml @@ -92,12 +92,12 @@ jobs: id: metadata run: | echo "::group::Prepare metadata files" - cmake -DGENERATE_OTTDREV=.ottdrev-build -P cmake/scripts/FindVersion.cmake + cmake -DGENERATE_OTTDREV=.ottdrev -P cmake/scripts/FindVersion.cmake ./.github/changelog.sh > .changelog TZ='UTC' date +"%Y-%m-%d %H:%M UTC" > .release_date - head -1 .ottdrev-build | cut -f 1 -d$'\t' > .version + head -1 .ottdrev | cut -f 1 -d$'\t' > .version - if [ $(head -1 .ottdrev-build | cut -f 5 -d$'\t') = '1' ]; then + if [ $(head -1 .ottdrev | cut -f 5 -d$'\t') = '1' ]; then # Assume that all tags are always releases. Why else make a tag? IS_TAG="true"