mirror of
https://github.com/cc65/cc65.git
synced 2024-12-22 12:30:41 +00:00
use diff-index to prevent commit instead of bash if
preferred because the if suppresses all git commit errors, instead of the one error we need to suppress (commit with no changes)
This commit is contained in:
parent
a7676bdff5
commit
c662c7a36f
@ -115,9 +115,8 @@ jobs:
|
||||
git config push.default simple
|
||||
git add -A
|
||||
# prevent failure when there is nothing to commit
|
||||
if git commit -m "Updated from https://github.com/cc65/cc65/commit/${GITHUB_SHA}" ; then
|
||||
git diff-index --quiet HEAD || git commit -m "Updated from https://github.com/cc65/cc65/commit/${GITHUB_SHA}"
|
||||
git push
|
||||
fi
|
||||
|
||||
# enter secrets under "repository secrets"
|
||||
- name: Upload snapshot to sourceforge
|
||||
|
Loading…
Reference in New Issue
Block a user