From 7cda565501fafc37a24cae0eb5d9c23432e716ae Mon Sep 17 00:00:00 2001 From: NEVSTOP Date: Tue, 18 Feb 2025 23:00:25 +0800 Subject: [PATCH] try fix The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index fa328ed..00fcd68 100644 --- a/action.yml +++ b/action.yml @@ -106,5 +106,5 @@ runs: $Parameter9 ` $Parameter10 ; $Result=Get-Content -Path "${{ github.action_path }}\output.txt"; - Write-Host "::set-output name=Result::$Result" + Add-Content -Path $env:GITHUB_OUTPUT -Value "Result=$Result" shell: powershell