At
|
echo "Working tree clean. Nothing to commit." |
, if there's no content to commit, the action exit sucessfully, but there's no way to know if there were commited changes or repo is untouched. I need to know this to prevent to publish a package to
npm with nightly changes if there has been no changes. Ideally Github Actions should provide a
neutral output as it did in legacy version, but it got removed. Maybe one alternative would be to set an environment variable to notify this.
At
git-auto-commit-action/entrypoint.sh
Line 20 in c887fa4
npmwith nightly changes if there has been no changes. Ideally Github Actions should provide aneutraloutput as it did in legacy version, but it got removed. Maybe one alternative would be to set an environment variable to notify this.