Skip to content

Commit

Permalink
test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
insomnious committed Jul 23, 2024
1 parent 293fa37 commit 7d02399
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ jobs:
echo "version = $version"
echo "semver = $semver"
echo "tag = v$semver"
echo "version=$version" >> $env:$GITHUB_OUTPUT
echo "semver=$semver" >> $env:$GITHUB_OUTPUT
echo "tag=v$semver" >> $env:$GITHUB_OUTPUT
echo "version=$version" >> $GITHUB_OUTPUT
echo "semver=$semver" >> $GITHUB_OUTPUT
echo "tag=v$semver" >> $GITHUB_OUTPUT
- name: Display Version and Tag
shell: pwsh
run: |
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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: |
$output = '${{ steps.set-output.outputs.testOutput }}'
Write-Host "The output variable value is: $output"
shell: pwsh

0 comments on commit 7d02399

Please sign in to comment.