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 tag_image_push_rhel.yml for push triggers [DI-375] #846

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JackPGreen
Copy link
Collaborator

@JackPGreen JackPGreen commented Dec 30, 2024

In #844, the HZ_VERSION is computed using the required HZ_VERSION input.

However, this is only required for workflow_dispatch triggers - it can also be triggered by push, where it's instead empty - causing an action failure:

Run madhead/semver-utils@latest
Error: Input required and not supplied: version

The workflow already derived an appropriate HZ_VERSION environment variable by validating the one in the in the input - updated to use this instead as it should have done in the first place.

Also simplified the above logic to avoid it overwriting env.HZ_VERSION with the same value pointlessly.

Fixes: DI-375

In #844, the `HZ_VERSION` is computed using the `required` `HZ_VERSION` `input`.

However, this is only `required` for `workflow_dispatch` triggers - it can _also_ be triggered by `push`, where it's instead empty - causing an [action failure](https://github.com/hazelcast/hazelcast-docker/actions/runs/12521044660):
```
Run madhead/semver-utils@latest
Error: Input required and not supplied: version
```

The workflow already derived an appropriate `HZ_VERSION` environment variable by validating the one in the in the `input` - updated to use this instead as it _should_ have done in the first place.
@JackPGreen JackPGreen self-assigned this Dec 30, 2024
@JackPGreen JackPGreen requested a review from a team as a code owner December 30, 2024 11:47
@JackPGreen JackPGreen changed the title Fix tag_image_push_rhel.yml for push triggers Fix tag_image_push_rhel.yml for push triggers [DI-375] Dec 30, 2024
@JackPGreen JackPGreen enabled auto-merge (squash) December 30, 2024 11:48
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.

1 participant