Skip to content

Commit

Permalink
Update getting-started.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrettgaither authored Jun 4, 2024
1 parent f30d31b commit 602ad21
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/getting-started.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ jobs:

job2:
runs-on: self-hosted
outputs:
output1: ${{steps.step1.outputs.test}}
steps:
- id: step1
run: echo "test=howdy partner" >> "$GITHUB_OUTPUT"
- shell: bash
run: echo "Hello Partner" > my_string.txt
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: my_string
path: my_string.txt

job3:
runs-on: self-hosted
Expand All @@ -37,6 +40,12 @@ jobs:
matrix:
nums: [1,2,3,4,5,6,7,8,9,10]
steps:
- env:
OUTPUT1: ${{needs.job2.outputs.output1}}
run: echo "$OUTPUT1 - ${{matrix.nums}}"
- name: Download string
uses: actions/download-artifact@v4
with:
name: my_string
- name: printing
- shell: bash
run: |
value = 'cat my_string.txt'
echo "$value - ${{matrix.nums}}"

0 comments on commit 602ad21

Please sign in to comment.