From c151bff7eef7f4c1c682caf0253cdf636718f68b Mon Sep 17 00:00:00 2001 From: James Date: Fri, 24 Feb 2023 13:57:25 +0000 Subject: [PATCH] test.yml: add example usage of step output --- .github/workflows/test.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ef07cd0..9626cbc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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}}"