Skip to content

Commit

Permalink
Add compute-sha256 presumbit check
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Lewis <[email protected]>
  • Loading branch information
Ian Lewis committed Oct 17, 2022
1 parent dc705ba commit 3f2e428
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/pre-submit.actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,18 @@ jobs:
- run: |
# exit 0 if checks were successful.
[ "${CHECK_DIST_RESULT}" == "success" ] && [ "${CHECKOUT_RESULT}" == "success" ]
compute-sha256:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
- run: |
echo "foo" > artifact
- id: compute-sha256
uses: .github/actions/compute-sha256
with:
path: artifact
- env:
OUTPUT: ${{steps.outputs.compute-256}}
run: |
[[ "$OUTPUT" == "b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c" ]]

0 comments on commit 3f2e428

Please sign in to comment.