mirror of
https://github.com/actions/typescript-action.git
synced 2025-04-08 00:09:45 +00:00
test.yml: add example usage of step output
This commit is contained in:
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@ -17,8 +17,17 @@ jobs:
|
||||
npm run all
|
||||
test: # make sure the action works on a clean machine without building
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
time: ${{ steps.testActionStep.outputs.time }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
id: checkoutStep
|
||||
- uses: ./
|
||||
id: testActionStep
|
||||
with:
|
||||
milliseconds: 1000
|
||||
printOuput:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
steps:
|
||||
- run: echo "${{needs.test.outputs.time}}"
|
||||
|
Reference in New Issue
Block a user