Skip to content

Make a bump version action for DA interviews #37

@BryceStevenWilley

Description

@BryceStevenWilley

Something @nonprofittechy brought up in a meeting, I like the idea for user-facing Docassemble interviews!1

Most of our Docassemble interviews could use either just a single number version or date versioning, and this action should:

  • pull the repo
  • find the version number
    • will be in __init__.py and setup.py/pyproject.toml, or just in __init__.py (depending on the package and what version of DA it's using)
  • update it
    • if it's a single number, increment it
    • if it's a series of 3 or 4 numbers where the first is 4 digits (i.e. a year), update it to the current date.
      • if it's already today, add or increment a 4th number to distinguish
  • write the new version back to the files
  • make a git commit with a special tag in the commit message (like [autobump] or something), and push the commit to main (similar to some repos that use [skip ci]) in certain commits.

Each repo have another action that would automatically publish / push to PyPI on the autobump on those special commits.

Footnotes

  1. For our library packages (AssemblyLine, ALToolbox) where semantic versioning is still useful, I think an automatic version bump action is less useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions