Skip to content

Creating FORCE option - #296

Merged
sbe-arg merged 2 commits into
anothrNick:masterfrom
jcvegan:feature/add-force-parameter
Mar 15, 2024
Merged

Creating FORCE option#296
sbe-arg merged 2 commits into
anothrNick:masterfrom
jcvegan:feature/add-force-parameter

Conversation

@jcvegan

@jcvegan jcvegan commented Nov 30, 2023

Copy link
Copy Markdown
Contributor

Summary of changes

Adding a FORCE option to skip the condition if the release commit is the same commit from the tag.
This will allow users to create hotfix from a last release branch.

Added the FORCE option and add also the condition to skip the validation on commit.

Breaking Changes

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

(YES / NO)

How changes have been tested

List any unknowns

@jcvegan

jcvegan commented Dec 7, 2023

Copy link
Copy Markdown
Contributor Author

@sammcj @sbe-arg please can you review this PR?

@sbe-arg

sbe-arg commented Dec 8, 2023

Copy link
Copy Markdown
Collaborator

I can't test this for a few more weeks and not sure I understand value adding this force option as the idea is to not do anything if the there are no changes. It defeats the purpose of bumping versions only when changes are found.

Maybe explain a bit more of some scenarios where this option is usefull.

@jcvegan

jcvegan commented Dec 13, 2023

Copy link
Copy Markdown
Contributor Author

I can't test this for a few more weeks and not sure I understand value adding this force option as the idea is to not do anything if the there are no changes. It defeats the purpose of bumping versions only when changes are found.

Maybe explain a bit more of some scenarios where this option is usefull.

@sbe-arg yes sure.
First thanks for the effort on this solution.

The scenario we are facing is, we have a release tag (where we have found an issue). So we want to create another release branch where we will fix the issue.
So what we have done is the following:

  • Create a branch from the tag with bug
  • From that new branch we want to create a new release branch, And here is where the validation does not allow us to create a new release branch. Because comparing to the latest release branch, they are the same. So I came out with adding a force, to skip the validation and create that new release branch.

That's the way I thought can resolve our scenario.

Again thanks for this solution :)

@sbe-arg

sbe-arg commented Mar 8, 2024

Copy link
Copy Markdown
Collaborator

What if we rename the force to something like.

Update without commit changes.

force_without_changes or alike.

I'm still not sure about how this will impact existing workflows

@jcvegan

jcvegan commented Mar 12, 2024

Copy link
Copy Markdown
Contributor Author

What if we rename the force to something like.

Update without commit changes.

force_without_changes or alike.

I'm still not sure about how this will impact existing workflows

@sbe-arg code updated

@gyar-denim

Copy link
Copy Markdown

Hey all,
We also need the force option. @jcvegan thanks for implementing this feature.

@sbe-arg

sbe-arg commented Mar 15, 2024

Copy link
Copy Markdown
Collaborator

The problem is I can merge it but I cannot test it.

If I merge and there is trouble ill revert unless you keep and eye on this for a few days post merge.

@sbe-arg
sbe-arg merged commit 209d64f into anothrNick:master Mar 15, 2024
@jcvegan

jcvegan commented Mar 15, 2024

Copy link
Copy Markdown
Contributor Author

@sbe-arg the build had failed, but I am not sure what is causing that issue. https://github.com/anothrNick/github-tag-action/actions/runs/8291496983/job/22691303650#step:4:336

Seems to be a permission issue. For sure I can follow up on this change after it is published. I have a couple of repositories where I can test it

@sbe-arg

sbe-arg commented Mar 15, 2024

Copy link
Copy Markdown
Collaborator

We might need @anothrNick to add bot permissions bot the repo settings level

@sbe-arg

sbe-arg commented Mar 18, 2024

Copy link
Copy Markdown
Collaborator

I think this is related to the checkout v3.
We need to bump to checkout 4.1.2 and add dependabot as well.

@anothrNick

Copy link
Copy Markdown
Owner

We might need @anothrNick to add bot permissions bot the repo settings level

What do you need here?

@sbe-arg

sbe-arg commented Mar 19, 2024

Copy link
Copy Markdown
Collaborator

@anothrNick in theory this should fix the permission error to release this repo #307

@sbe-arg

sbe-arg commented Mar 19, 2024

Copy link
Copy Markdown
Collaborator

@jcvegan forgot to edit the dockerfile or the entrypoint to trigger a new release.
want to open a pr to bump to alpine node 20? good excuse, Ill approve so we can merge

@jcvegan

jcvegan commented Mar 20, 2024

Copy link
Copy Markdown
Contributor Author

@jcvegan forgot to edit the dockerfile or the entrypoint to trigger a new release. want to open a pr to bump to alpine node 20? good excuse, Ill approve so we can merge

Hi @sbe-arg , I modified the entrypoint but not the dockerfile. Do you want me to create the PR for this change? is it only upgrading the node version?

@sbe-arg

sbe-arg commented Mar 20, 2024

Copy link
Copy Markdown
Collaborator

Yes just a dockerfile or entrypoin edit will trigger a new release is either or

@jcvegan

jcvegan commented Mar 21, 2024

Copy link
Copy Markdown
Contributor Author

@sbe-arg just created the PR for that, upgrading node to version 20 #308

@sbe-arg

sbe-arg commented Mar 21, 2024

Copy link
Copy Markdown
Collaborator

I have no idea why we suddenly have this problem

remote: Permission to anothrNick/github-tag-action.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/anothrNick/github-tag-action/': The requested URL returned error: 403

@anothrNick any ideas? we do have https://github.com/anothrNick/github-tag-action/blob/master/.github/workflows/main.yml#L19 write access

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.

4 participants