Skip to content

Commit

Permalink
ci: only commit measurements if changes are present (#3223)
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Sanft <[email protected]>
  • Loading branch information
msanft authored Jul 2, 2024
1 parent 7945778 commit c48995f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,12 @@ jobs:
run: |
git config --global user.name "edgelessci"
git config --global user.email "[email protected]"
git commit -m "attestation: hardcode measurements for ${VERSION}"
git push
if git diff-index --quiet HEAD --; then
echo "No changes to commit"
else
git commit -m "attestation: hardcode measurements for ${VERSION}"
git push
fi
draft-release:
name: Draft release (CLI)
Expand Down

0 comments on commit c48995f

Please sign in to comment.