Skip to content

Commit

Permalink
feat: output summary (#90)
Browse files Browse the repository at this point in the history
* feat: output summary

* fix: no =
  • Loading branch information
beckermr authored Sep 5, 2024
1 parent 37dda99 commit 7ea2f88
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ jobs:
if: steps.relock.outputs.relocked != 'true'
run: exit 1

- name: check the summary
if: steps.relock.outputs.relocked == 'true'
run: |
echo ${{ steps.relock.outputs.summary }}
if [[ "${{ steps.relock.outputs.summary }}" == "" ]]; then
exit 1
fi
- name: test that PR is OK
if: steps.relock.outputs.relocked == 'true'
shell: bash
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ outputs:
relocked:
description: "whether the environment was relocked"
value: ${{ steps.set-output.outputs.relocked }}
summary:
description: "the summary of the relock operation"
value: ${{ steps.relock.outputs.summary }}

runs:
using: "composite"
Expand Down

0 comments on commit 7ea2f88

Please sign in to comment.