Skip to content

Test GITHUB_OUTPUT

Test GITHUB_OUTPUT #4

Workflow file for this run

name: Test GITHUB_OUTPUT
on:
workflow_dispatch:
jobs:
test-output:
runs-on: ubuntu-latest
steps:
- name: Set an output variable
id: set-output
run: |
$testOutput = "Hello, World!"
echo "testOutput=$testOutput" >> $GITHUB_OUTPUT
shell: pwsh
- name: Use the output variable
run: |
echo "The output variable value is: ${{ steps.set-output.outputs.testOutput }}"