Skip to content

Commit

Permalink
output
Browse files Browse the repository at this point in the history
  • Loading branch information
itzzjb committed Aug 29, 2024
1 parent c709279 commit 26d9da7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
jobs:
test:
runs-on: ubuntu-latest
outputs:
hello: ${{ steps.hello.outputs.hello }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -21,6 +23,9 @@ jobs:
with:
name: Hello
path: ./Hello.txt
- name: Creating an Output
id: hello
run: echo "Hello, World!" >> $GITHUB_OUTPUT
echo:
runs-on: ubuntu-latest
needs: test
Expand All @@ -31,3 +36,5 @@ jobs:
name: Hello
- name: Print Hello
run: cat Hello.txt
- name: Output the Output
run: echo "The output is ${{ needs.test.outputs.hello }}"

0 comments on commit 26d9da7

Please sign in to comment.