Skip to content

Commit

Permalink
set github output instead of github env
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Mar 19, 2024
1 parent 8afac3e commit c7a7666
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion StagingArea/test/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Tags:
- Name: validation
- Name: my-package
- Name: thing
ReleaseNotes: "Trigger another CI run"
ReleaseNotes: "Trigger another CI run!"
---
*)

Expand Down
4 changes: 2 additions & 2 deletions scripts/pre-publish-checks.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)}"""
printfn $"""GITHUB_OUTPUT={File.ReadAllText(GITHUB_ENV)}"""

0 comments on commit c7a7666

Please sign in to comment.