Skip to content

Commit

Permalink
Add ability to pass output to another step
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunnerLivio committed Feb 2, 2020
1 parent 0b636de commit b83c4d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
uses: ./
with:
url: 'https://github.com/'
id: lighthouse
- name: Check output
run: echo "${{ steps.lighthouse.outputs.performance }}""
- uses: actions/upload-artifact@master
with:
name: report
Expand Down
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ printf "+-------------------------------+\n\n"
printf "* Detailed results are saved here, use https://github.com/actions/upload-artifact to retrieve them:\n"
printf " %s\n" "$OUTPUT_PATH.report.html"
printf " %s\n" "$OUTPUT_PATH.report.json"
echo "##[set-output name=performance;]$(echo "$SCORE_PERFORMANCE*100" | bc -l)"

exit 0

0 comments on commit b83c4d6

Please sign in to comment.