-
-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notify when there was no commited changes #46
Comments
I think there are a couple of things we could do here:
I personally like both approaches. |
I was thinking about both ideas, and I like both of them, too. Problem with the exit code is that you would not be able to diferenciate when it failed or it was a neutral exit, probably would be the less bad of the cases. What do you mean about "push a value to the Actions output"? Some trick like Azure one to set environment variables between steps, where they are echoed to stdout with a special prefix? Do you have documentation about that? |
I thought about adding this: https://help.github.com/en/actions/building-actions/metadata-syntax-for-github-actions#outputs We could do something like this echo \"::set-output name=changed_detected::true\"
echo \"::set-output name=changed_detected::false\" You would then have access to the value in your workflow file through As an example, this repository has a workflow, which automatically creates a new release, when a tag is pushed. git-auto-commit-action/.github/workflows/continuous-deployment.yml Lines 16 to 29 in c887fa4
|
It's almost equal to how Azure does it :-) This fine for me :-) |
@piranna Just a head up: I've prepared something in #49 and merged it into You will then be able to use the output like this: Will close this issue when I've tagged a new version. |
Great, that would be useful to me too :-) I'm willing to use that feature at nightly pipelines of https://github.com/projectlint/OS-lifecycle :-) |
Hello again, I've just released https://github.com/stefanzweifel/git-auto-commit-action/releases/tag/v4.1.0 Hope you can utilise this in your workflows. |
Nice, now it's working :-) https://github.com/projectlint/OS-lifecycle/runs/490127931?check_suite_focus=true Thank you so much! :-D |
At
git-auto-commit-action/entrypoint.sh
Line 20 in c887fa4
npm
with nightly changes if there has been no changes. Ideally Github Actions should provide aneutral
output as it did in legacy version, but it got removed. Maybe one alternative would be to set an environment variable to notify this.The text was updated successfully, but these errors were encountered: