Skip to content

Commit

Permalink
Allow SHA reuse, can be expected behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Jul 11, 2024
1 parent 1ab8f71 commit 939c32b
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ runs:
id: digest_old
shell: bash
run: |
DIGEST=$((docker manifest inspect ${{ steps.vars.outputs.tags }} || echo) | jq '.manifests[0].digest')
DIGEST=$(docker manifest inspect ${{ steps.vars.outputs.tags }} || echo | jq '.manifests[0].digest')
echo "digest=${DIGEST}" >> $GITHUB_OUTPUT
# If a build is required, then checkout, login, build and push!
Expand Down Expand Up @@ -188,17 +188,6 @@ runs:
if: steps.build.outputs.triggered == 'true' && steps.digest_new.outputs.digest == steps.digest_old.outputs.digest
shell: bash
run: |
echo "SHA collision!"
echo "SHA repeat!"
echo " New: ${{ steps.digest_new.outputs.digest }}"
echo " Old: ${{ steps.digest_old.outputs.digest }}"
exit 1
# Summary/debugging
- name: Summary
if: always()
shell: bash
run: |
echo "inputs: ${{ fromJSON(inputs) }}"
echo "digest_new: ${{ steps.digest_new.outputs.digest }}"
echo "digest_old: ${{ steps.digest_old.outputs.digest }}"
echo "triggered: ${{ steps.diff.outputs.triggered }}"

0 comments on commit 939c32b

Please sign in to comment.