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

Added TAG_PREFIX so more descriptive tags can be used #326

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

Conversation

timothyclarke
Copy link

@timothyclarke timothyclarke commented Sep 16, 2024

Summary of changes

Added TAG_PREFIX to replace WITH_V. WITH_V is still in place for backwards comparability, but the idea is it would be removed in a few versions (gives people a chance to change their code, doesn't force a major etc)

This should fix #320. I have a similar use case where a monorepo has a bunch of folders which maintain independent versions

This is best used along side changed-files and a matrix

Breaking Changes

Do any of the included changes break current behaviour or configuration?

NO : The changes are backwards compatible to allow a smoother transition

How changes have been tested

Backwards compatibility
tagging WITH_V false
tagging WITH_V true

New Feature (all in matrix jobs as that's my usecase)
Bump multiple tags
Bump one tag add one tag

List any unknowns

@timothyclarke timothyclarke marked this pull request as ready for review September 17, 2024 09:44
@timothyclarke timothyclarke changed the title Added TAG_PREFIX Added TAG_PREFIX so more descriptive tags can be used Sep 17, 2024
@timothyclarke
Copy link
Author

@anothrNick When you get a chance can you take a look at this one please

@yannickpoggel
Copy link

Hi @anothrNick , this feature would be great for working with monorepos.

README.md Outdated
@@ -85,14 +84,15 @@ _NOTE: set the fetch-depth for `actions/checkout@v2` or newer to be sure you ret
- **GITHUB_TOKEN** **_(required)_** - Required for permission to tag the repo.
- **DEFAULT_BUMP** _(optional)_ - Which type of bump to use when none explicitly provided (default: `minor`).
- **DEFAULT_BRANCH** _(optional)_ - Overwrite the default branch its read from GitHub Runner env var but can be overwritten (default: `$GITHUB_BASE_REF`). Strongly recommended to set this var if using anything else than master or main as default branch otherwise in combination with history full will error.
- **WITH_V** _(optional)_ - Tag version with `v` character.
- **WITH_V** _(optional, depricated)_ - Tag version with `v` character. Replaced by TAG_PREFIX

Choose a reason for hiding this comment

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

Suggested change
- **WITH_V** _(optional, depricated)_ - Tag version with `v` character. Replaced by TAG_PREFIX
- **WITH_V** _(optional, deprecated)_ - Tag version with `v` character. Replaced by TAG_PREFIX

Choose a reason for hiding this comment

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

@robw-raviga Thanks. Fixed in ed6507f

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.

Feature Request: Prefixes
4 participants