From a1b79ea5857a52332d9da49d261a7fd04e52a466 Mon Sep 17 00:00:00 2001 From: Michael Dusan Date: Sun, 5 Dec 2021 02:35:06 -0500 Subject: [PATCH] ci: linux: pass VERSION on_master_success Cache the VERSION value for use with linux_on_mster_success. This replaces 117c0460d3f5ff05d5e2c51c2aa376b56be13096 . --- ci/zinc/linux_on_master_sucess.sh | 2 +- ci/zinc/linux_package.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/zinc/linux_on_master_sucess.sh b/ci/zinc/linux_on_master_sucess.sh index 3e9b50454a..588a45bcfd 100755 --- a/ci/zinc/linux_on_master_sucess.sh +++ b/ci/zinc/linux_on_master_sucess.sh @@ -2,7 +2,7 @@ . ./ci/zinc/linux_base.sh -VERSION=$($RELEASE_STAGING/zig version) +VERSION=$(cat $WORKSPACE/env.version) # Avoid leaking oauth token. set +x diff --git a/ci/zinc/linux_package.sh b/ci/zinc/linux_package.sh index 9a4614c923..1add8ee172 100755 --- a/ci/zinc/linux_package.sh +++ b/ci/zinc/linux_package.sh @@ -36,5 +36,8 @@ s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" " # Publish manifest. s3cmd put -P --add-header="cache-control: max-age=0, must-revalidate" "$MANIFEST" "s3://ziglang.org/builds/$ARCH-linux-$VERSION.json" +# Forward value to on_master_script +echo "$VERSION" > $WORKSPACE/env.version + # Explicit exit helps show last command duration. exit