Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
insomnious authored Jul 23, 2024
1 parent eae0fe4 commit 5fb5010
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ jobs:

steps:

- name: Set an output variable
- name: Set an output variable using PowerShell
id: set-output
run: |
$testOutput = "Hello, World!"
echo "testOutput=$testOutput" >> $GITHUB_OUTPUT
echo "testOutput=$testOutput" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8
shell: pwsh

- name: Use the output variable
- name: Use the output variable using PowerShell
run: |
echo "The output variable value is: ${{ steps.set-output.outputs.testOutput }}"
$output = '${{ steps.set-output.outputs.testOutput }}'
Write-Host "The output variable value is: $output"
shell: pwsh

0 comments on commit 5fb5010

Please sign in to comment.