mirror of
https://github.com/mtkennerly/dunamai-action.git
synced 2025-06-20 14:30:48 +00:00
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: Run Dunamai
|
|
description: |
|
|
Use Dunamai to determine a dynamic version from your VCS tags.
|
|
This requires access to Python in the workflow.
|
|
branding:
|
|
icon: terminal
|
|
color: purple
|
|
inputs:
|
|
install:
|
|
description: |
|
|
Version of Dunamai to install (e.g., "1.13.2").
|
|
Use the default if you don't need a specific version,
|
|
or use "none" if your workflow installs Dunamai by other means.
|
|
required: false
|
|
default: latest
|
|
env-var:
|
|
description: |
|
|
Name of environment variable in which to set the dynamic version.
|
|
If this is empty, no environment variable will be set.
|
|
required: false
|
|
default: ''
|
|
command:
|
|
description: Command to run Dunamai.
|
|
required: false
|
|
default: 'dunamai from any'
|
|
args:
|
|
description: Additional arguments to pass to the command.
|
|
required: false
|
|
default: ''
|
|
outputs:
|
|
version:
|
|
description: The dynamic version.
|
|
value: ${{ steps.main.outputs.version }}
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- id: main
|
|
shell: bash
|
|
run: python ${{ github.action_path }}/action.py
|
|
env:
|
|
INPUT_INSTALL: ${{ inputs.install }}
|
|
INPUT_ENV_VAR: ${{ inputs.env-var }}
|
|
INPUT_COMMAND: ${{ inputs.command }}
|
|
INPUT_ARGS: ${{ inputs.args }}
|