Don't fail if there's nothing to commit and push

This commit is contained in:
Pedro Algarvio 2020-10-20 19:57:27 +01:00
parent 51c65ef6a8
commit 9d8e3d2273
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -31,8 +31,7 @@ jobs:
git config --global user.name 'SaltStack GH Automation'
git config --global user.email 'actions@github.com'
git add *.sha256
git commit -am "Update sha256 checksums"
git push
git commit -am "Update sha256 checksums" && git push || true
- uses: actions/checkout@v2
if: github.repository == 'saltstack/salt-bootstrap'
@ -51,5 +50,4 @@ jobs:
python3 .github/workflows/scripts/update-release-shasum.py ${{ env.BS_VERSION }} ${{ env.SH }}
git config --global user.name 'SaltStack GH Automation'
git config --global user.email 'actions@github.com'
git commit -am "Update README.rst with latest release sha256sum"
git push
git commit -am "Update README.rst with latest release sha256sum" && git push || true