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

Updates versioning workflows #5

Merged
merged 3 commits into from
Sep 26, 2023
Merged

Updates versioning workflows #5

merged 3 commits into from
Sep 26, 2023

Conversation

kaitj
Copy link
Collaborator

@kaitj kaitj commented Sep 26, 2023

Splits up the pre-release and release version bumping workflows to make use of composite actions rather than making the versioning actions completely static. The benefit of this is that the version grabbing and commit actions can be separately called in other workflows (e.g. if files other than the metadata - pyproject.toml or pipeline_description.json needs to be updated).

This commit adds composite actions for versioning for both "pre-release"
and "release" of projects. The action assumes release-drafter is used
and that the version will be grabbed from a combination of
release-drafter and project-metadata (for pre-release) or
release-drafter alone (for release).
This commit makes use of the composite actions for versioning and
commiting, splitting it from the reusable workflows. This was done
as it is difficult to predict what types of files the downstream repos
may want to update (e.g. pyproject.toml, pipeline_description.json,
etc.)

A workflow is still provided for the most generic use case: updating a
metadata file.
Optionally update pipeline_description.json (this was added primarily
due to the many workflows being created that also creates this
pipeline_description.json file).
@kaitj kaitj added the maintenance Updates or improvements that do not change functionality of the code label Sep 26, 2023
@kaitj kaitj self-assigned this Sep 26, 2023
@kaitj kaitj merged commit 1386934 into main Sep 26, 2023
@kaitj kaitj deleted the maint/semver branch September 26, 2023 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Updates or improvements that do not change functionality of the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant