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

Handle correctly if no assets are to be released #15

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

steffenkleinle
Copy link
Member

@steffenkleinle steffenkleinle commented Aug 7, 2024

If no assets are to be released and therefore files === '', the github release assets commands fails as it tries to upload the file with the path ''. Therefore gracefully return without doing anything if no assets are to be released.

Fixes: digitalfabrik/entitlementcard#1521

@steffenkleinle
Copy link
Member Author

This fixes digitalfabrik/entitlementcard#1521. Instead of passing a parameter to define which assets should be uploaded, I chose to just made the upload more robust and correctly handle if an empty list of files is passed. I tested this here: https://app.circleci.com/pipelines/github/digitalfabrik/entitlementcard/6029/workflows/38c8d3dd-911f-4e2c-a475-52322ab9df01/jobs/43140

Copy link

@LeandraH LeandraH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@steffenkleinle steffenkleinle merged commit 798b90b into main Aug 19, 2024
2 checks passed
@steffenkleinle steffenkleinle deleted the handle-no-assets branch August 19, 2024 08:51
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.

Notify release for native and web
3 participants