diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aed98479e..9f0002f0f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -250,8 +250,12 @@ jobs: run: | git config --global user.name "edgelessci" git config --global user.email "edgelessci@users.noreply.github.com" - 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)