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

Snapshots on days with no change #3

Open
mikepurvis opened this issue Oct 3, 2022 · 1 comment
Open

Snapshots on days with no change #3

mikepurvis opened this issue Oct 3, 2022 · 1 comment

Comments

@mikepurvis
Copy link
Member

In the unlikely case that there was no change at all in 24h between snapshots, the git commit would become a no-op with return code 1, which as it stands would fail the whole pipeline. Some options for this scenario:

  • || true the return code, meaning no tag will be created and we'll just proceed with tagging the previous commit.
  • detect no change and gracefully stop the pipeline without creating a tag at all.
  • add --allow-empty so that we get a new commit no matter what.
  • let the pipeline just fail on those days.
  • break up the pipeline into separate "detect" and "create" portions, where the first only triggers the second if changes actually exist to be captured.
@mikepurvis
Copy link
Member Author

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

No branches or pull requests

1 participant