Proposal to add an input to allow fail on warnings

Open
#200 5 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, github-actions, typescript
Domain
ci-cd, devops

Research direction

Start by locating the action's input definitions and the warning path for invalid semver values; the issue names no files or tests. Confirm the desired strict-input behavior, then verify that invalid versions fail under strict mode while the current warning behavior remains unchanged.

Written by the indexing model from the issue text.

Description

Behaviour
Steps to reproduce this issue
  1. pass version which is a not valid semver.org version
  2. the action will warn you will message like Warning: v1.5.15pre1 is not a valid semver. More info: https://semver.org/
Expected behavior

It will be nice to add some strict input to treat all warnings as errors. And if the version is invalid the docker/metadata-action step will fails

Actual behaviour

I suppose current behavior is right


This ticket just to understand if this feature is useful for someone else

Dominant language
TypeScript
Stars
1.1k
Forks
160
Avg merge
4d 17h
Merged PRs (30d)
12

Contributor guide

Open the contributing guide

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 docker/metadata-action

All issues in docker/metadata-action

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.