Skip to content
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

Fix missing output when no release has been made #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andreaswachowski
Copy link

Commit 05ed406 added "set -o pipefail" in assets/check, but this creates
a tiny side effect:

When no revisions exist yet, "grep -i 'deployed'" returns 1,
and with pipefail enabled, the whole pipe returns 1.
At this point, the script immediately exits (due to "set -e"), and the
output in line 57 will never happen, confusing the user.

Commit 05ed406 added "set -o pipefail" in assets/check, but this creates
a tiny side effect:

When no revisions exist yet, "grep -i 'deployed'" returns 1,
and with pipefail enabled, the whole pipe returns 1.
At this point, the script immediately exits (due to "set -e"), and the
output in line 57 will never happen, confusing the user.
@andreaswachowski
Copy link
Author

FYI, the problem was initially discussed here: https://fielmann.slack.com/archives/C93PX77RU/p1614791520135100?thread_ts=1614789611.133000&cid=C93PX77RU

This Screenshot shows the behavior prior to this PR:

Screenshot 2021-03-03 at 18 10 38

@lanixxfielmann
Copy link

Yes, that sounds right and looks good.

@andreaswachowski
Copy link
Author

@lanixxfielmann Could you merge this (I don't have permission for it)? It's been a while since I opened the PR, and I think this fix could help others. Especially when starting out with this resource and setting up a new pipeline.

@andreaswachowski
Copy link
Author

Oh, just noticing: Or should I update the VERSION-file, too? Not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants