fix: checks out selected branch instead of main in db update workflow #1521
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #1510
The gist of this PR is that the checkout in db-update.yml is now using the branch that's associated with the run instead of main.
This was OK for releases (since the associated branch is usually main) but not for manual trigger, where the user can select another branch.
Also added a README.md for the workflows, partly generated with AI, but also somewhat vetted by a human.
Also removed db-update-schema.yml, that is currently unused (it can only be called from another workflow, and nobody is calling it), AND does the same job as db-update.yml.
Also I corrected some minor typos related to some license examples in DatabaseCatalogAPI and OperationsAPI.yaml. Replaced OBSD with 0BSD (with a zero)
Testing tips:
Ran db-update-dev.yml manually with a certain branch and DRY_RUN and made sure that git got the right branch (it's in the logs).
Please make sure these boxes are checked before submitting your pull request - thanks!
./scripts/api-tests.shto make sure you didn't break anything