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

Feat/153 make build and push always sync #154

Merged
merged 8 commits into from
Sep 4, 2024

Conversation

luislard
Copy link
Contributor

@luislard luislard commented Aug 22, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
This PR changes a bit the concept of build and push by adding "sync".
Closes #153

What is the current behavior? (You can also link to an open issue here)
We have realized that we prefer to always push the latest changes to the targeted branch/tag.
When we introduced a change in the development branch but didn't generate a difference in the build, the workflow was not updating the release branch because the push was not happening due to a condition. This is a problem when trying to create a version that doesn't change any assets.

What is the new behavior (if this is a feature change)?
This change will run the git push when the workflow is triggered on a branch, ensuring we have the latest changes in the release branch.

When it comes to the tag workflow it behaves a bit differently. We are avoiding moving the tag too much times by checking if there are assets changes.

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
It is hard to say, I would say no, it just behaves differently.

Other information:

Copy link
Member

@tyrann0us tyrann0us left a comment

Choose a reason for hiding this comment

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

Haven't tested this but code-wise LGTM.
Could you please remove LOCK_FILE from line 147 according to the Boy Scout rule? Thanks!

.github/workflows/build-and-push-assets.yml Show resolved Hide resolved
Copy link
Member

@tyrann0us tyrann0us left a comment

Choose a reason for hiding this comment

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

Cool, thanks!

@tyrann0us tyrann0us merged commit 4caec22 into main Sep 4, 2024
1 check passed
@tyrann0us tyrann0us deleted the feat/153_make_build_and_push_always_sync branch September 4, 2024 08:53
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]: make the build and push always sync latest changes by always pushing
4 participants