diff --git a/.github/workflows/on-commits.yml b/.github/workflows/on-commits.yml index 4f73fb62..ac378236 100644 --- a/.github/workflows/on-commits.yml +++ b/.github/workflows/on-commits.yml @@ -63,10 +63,11 @@ jobs: git add vendir.lock # FIXME: optimize for idem potentency ./addblob.sh - git add config/blobs.yml - git commit -a -m "updating blobs" remote_repo="https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" - git push ${remote_repo} HEAD:master + + git add config/blobs.yml + ! git commit -a -m "updating blobs" && \ + git push ${remote_repo} HEAD:master - name: create bosh dev release