Skip to content

Commit

Permalink
Update Prev-Step-Ref-Demo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rindeal authored Sep 2, 2024
1 parent bf7ef90 commit 053d0d1
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/Prev-Step-Ref-Demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,22 @@ jobs:

steps:
- name: "Step #0"
id: step0
run: echo "value=STEP_0" >> $GITHUB_OUTPUT
id: 'step0'
run: |
echo "value=STEP_0_VALUE" >> $GITHUB_OUTPUT
- name: "Step #1"
id: step1
run: echo "value=STEP_1" >> $GITHUB_OUTPUT
id: 'step1'
run: |
echo "value=STEP_1_VALUE" >> $GITHUB_OUTPUT
- name: "Step #2"
id: step2
run: echo "value=STEP_2" >> $GITHUB_OUTPUT
id: 'step2'
run: |
echo "value=STEP_2_VALUE" >> $GITHUB_OUTPUT
- name: Use the output from the previous step
uses: actions/github-script@main
- name: "Use the output from the previous step"
uses: 'actions/github-script@main'
with:
script: |
const steps = JSON.parse(process.env['STEPS'])
Expand Down

0 comments on commit 053d0d1

Please sign in to comment.