From c7a766625750937a1c0fdaab47a0bcaca3afe89c Mon Sep 17 00:00:00 2001 From: Kevin Schneider Date: Tue, 19 Mar 2024 13:10:34 +0100 Subject: [PATCH] set github output instead of github env --- StagingArea/test/test@2.0.1.fsx | 2 +- scripts/pre-publish-checks.fsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/StagingArea/test/test@2.0.1.fsx b/StagingArea/test/test@2.0.1.fsx index 1a38d74..619313a 100644 --- a/StagingArea/test/test@2.0.1.fsx +++ b/StagingArea/test/test@2.0.1.fsx @@ -20,7 +20,7 @@ Tags: - Name: validation - Name: my-package - Name: thing -ReleaseNotes: "Trigger another CI run" +ReleaseNotes: "Trigger another CI run!" --- *) diff --git a/scripts/pre-publish-checks.fsx b/scripts/pre-publish-checks.fsx index b9d59d8..797b39d 100644 --- a/scripts/pre-publish-checks.fsx +++ b/scripts/pre-publish-checks.fsx @@ -42,11 +42,11 @@ open System open System.IO // https://stackoverflow.com/questions/70123328/how-to-set-environment-variables-in-github-actions-using-python -let GITHUB_ENV = Environment.GetEnvironmentVariable("GITHUB_ENV") +let GITHUB_ENV = Environment.GetEnvironmentVariable("GITHUB_OUTPUT") if staging_diff.Length > 0 then File.AppendAllLines(GITHUB_ENV, ["UPDATE_PREVIEW_INDEX=true"]) else File.AppendAllLines(GITHUB_ENV, ["UPDATE_PREVIEW_INDEX=false"]) -printfn $"""GITHUB_ENV={File.ReadAllText(GITHUB_ENV)}""" \ No newline at end of file +printfn $"""GITHUB_OUTPUT={File.ReadAllText(GITHUB_ENV)}""" \ No newline at end of file