mtkennerly / dunamai-action

GitHub Action for Dunamai
MIT License
7 stars 1 forks source link

GitHub Action for Dunamai

This repository provides a GitHub Action that uses Dunamai to determine a dynamic version from your VCS tags.

This requires access to Python in the workflow.

Inputs

Outputs

Example

jobs:
  example:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-python@v4
        with:
          python-version: '3.7'
      - uses: actions/checkout@v3
        with:
          # This is necessary so that we have the tags.
          fetch-depth: 0
      - uses: mtkennerly/dunamai-action@v1
        with:
          env-var: MY_VERSION
          args: --style semver
      - run: echo $MY_VERSION