Skip to content

Commit

Permalink
Expose build result
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Dec 25, 2024
1 parent 7c2b342 commit 338b6fd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion action/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ runs:
chmod u+x prr &&
mv prr /usr/local/bin/prr
- name: Build
id: build
shell: bash
run: |
CMD="prr build ${{ inputs.runtime }}"
Expand All @@ -47,4 +48,11 @@ runs:
if [ ! -z "${{ inputs.output-dir }}" ]; then
CMD="$CMD -o ${{ inputs.output-dir }}"
fi
eval "$CMD"
RESULT=$(${CMD})
echo "result=${RESULT}" >> "$GITHUB_OUTPUT"
outputs:
result:
description: "Build result."
value: ${{ steps.build.outputs.result }}

0 comments on commit 338b6fd

Please sign in to comment.