Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Redundant tag-push check in push step of container image build workflow file

Open
#29 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Stale
Tech stack
docker, github-actions
Domain
ci-cd, devops

Research direction

Inspect .github/workflows/_tomohub.yml, especially the tag trigger near lines 3-6 and the final container-image push step near line 59. Confirm the trigger already limits runs to tag pushes, then remove the redundant condition and verify the workflow still pushes the image for tag-triggered runs.

Written by the indexing model from the issue text.

Description

The workflow is configured to trigger on a push of a git tag: https://github.com/DiamondLightSource/TomoHub/blob/c931d678180cb6c53a55f214e9672e38b6300775/.github/workflows/_tomohub.yml#L3-L6

and yet the final step is checking if the event was a "push" and if there's a tag before the step runs (which is pushing the built container image): https://github.com/DiamondLightSource/TomoHub/blob/c931d678180cb6c53a55f214e9672e38b6300775/.github/workflows/_tomohub.yml#L59

The latter check is redundant due to the former already constraining the workflow to run only on a push of a tag.

Dominant language
TypeScript
Stars
2
Forks
1
Avg merge
15h 17m
Merged PRs (30d)
50

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DiamondLightSource/ImagingHub

All issues in DiamondLightSource/ImagingHub

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.