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

ci: make bump optional #50

Merged
merged 2 commits into from
Sep 12, 2024
Merged

ci: make bump optional #50

merged 2 commits into from
Sep 12, 2024

Conversation

stavros-k
Copy link
Contributor

Makes bumping version in CI optional.

Reasoning is that renovate calls this script on each dep update.
For example if an app have multiple containers, it will call it for each one of them.
That by itself is not an issue as wrap it in a bash script and call it once.
https://github.com/truenas/apps/blob/18c3dbfaf58341166c599b578ecf03ff4bc71d09/.github/scripts/renovate_bump.sh#L23-L25

However that means that if renovate calls the script FIRST for a container that is not the "main" container.
The app_version will never be bumped.

Solution is to call this script on every container, but only bump once.

This is paired with truenas/apps#410

@stavros-k stavros-k merged commit 5fa4df4 into master Sep 12, 2024
1 of 2 checks passed
@stavros-k stavros-k deleted the ci-optional-bump branch September 12, 2024 20:25
@stavros-k stavros-k mentioned this pull request Sep 13, 2024
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.

2 participants