Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #954 from galasa-dev/iss1902-release-improvements
Browse files Browse the repository at this point in the history
Update release.yaml using the auto-generated release.yaml during local builds
  • Loading branch information
techcobweb authored Jul 4, 2024
2 parents 294c6ef + e2e6f3b commit d149612
Show file tree
Hide file tree
Showing 2 changed files with 554 additions and 409 deletions.
16 changes: 16 additions & 0 deletions build-locally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,23 @@ function check_secrets {
success "secrets audit complete"
}

function update_release_yaml {
h2 "Updating release.yaml"

# After running 'gradle build', a release.yaml file should have been automatically generated
generated_release_yaml="${BASEDIR}/galasa-managers-parent/build/release.yaml"
current_release_yaml="${BASEDIR}/release.yaml"

if [[ -f ${generated_release_yaml} ]]; then
cp ${generated_release_yaml} ${current_release_yaml}
success "Updated release.yaml OK"
else
warn "Failed to automatically generate release.yaml, please ensure any changed bundles have had their versions updated in ${current_release_yaml}"
fi
}


build_code
update_release_yaml

check_secrets
Loading

0 comments on commit d149612

Please sign in to comment.