Skip to content

Add action to automatically create new release when version updated#82

Open
A-CGray wants to merge 4 commits intomainfrom
AutoReleaseAction
Open

Add action to automatically create new release when version updated#82
A-CGray wants to merge 4 commits intomainfrom
AutoReleaseAction

Conversation

@A-CGray
Copy link
Copy Markdown
Member

@A-CGray A-CGray commented Mar 19, 2026

Purpose

Adds a github action that parses the current version number defined in the top level __init__.py file and makes a new release if the version is greater than the most recent release for the repo.

Our repos can then use this action by implementing a workflow such as:

name: Auto-Release on Version Bump

on:
  push:
    branches:
      - main
    paths:
      - '**/__init__.py' # Only run this check if an __init__.py file is modified, which is where the version is defined

# We need write permissions to create tags and releases
permissions:
  contents: write

jobs:
  release:
    needs: [build]
    uses: mdolab/.github/.github/workflows/autoRelease.yaml@main
    secrets: inherit

Expected time until merged

Type of change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (non-backwards-compatible fix or feature)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Documentation update
  • Maintenance update
  • Other (please describe)

Testing

Checklist

  • I have run ruff check and ruff format to make sure the Python code adheres to PEP-8 and is consistently formatted
  • I have formatted the Fortran code with fprettify or C/C++ code with clang-format as applicable
  • I have run unit and regression tests which pass locally with my changes
  • I have added new tests that prove my fix is effective or that my feature works
  • I have added necessary documentation

@A-CGray A-CGray requested review from eirikurj and ewu63 March 19, 2026 21:53
@A-CGray A-CGray requested a review from a team as a code owner March 19, 2026 21:53
@A-CGray A-CGray requested review from sanjan98 and removed request for a team March 19, 2026 21:53
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.

1 participant