Skip to content

Commit ecc0714

Browse files
authored
Update sample.yml
1 parent 51c02a9 commit ecc0714

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/sample.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@ on:
66
workflow_dispatch:
77

88

9-
# comment
9+
1010

1111
jobs:
1212
job1:
1313
name: Job 1
1414
runs-on: ubuntu-latest
15+
outputs:
16+
OUTPUT1: ${{ steps.step-one.outputs.test }}
1517
steps:
16-
- run: |
18+
- id: step-one
19+
run: |
1720
echo "hello world" >> hello.txt
1821
echo "::warning file=app.js,line=1,col=5,endColumn=7,title=YOUR-TITLE::Missing semicolon"
22+
echo "test=hello" >> "$GITHUB_OUTPUT"
1923
- uses: actions/upload-artifact@v4
2024
with:
2125
name: hello
@@ -32,6 +36,7 @@ jobs:
3236
cat hello.txt
3337
echo $SECRET
3438
echo '${{ secrets.IAMAVALUE }}'
39+
echo "${{ needs.job1.outputs.OUTPUT1 }}"
3540
env:
3641
SECRET: ${{ secrets.IAMAVALUE }}
3742
TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)