dunamai-action/action.yaml

46 lines
1.3 KiB
YAML
Raw Normal View History

2020-07-10 22:58:21 -04:00
name: Run Dunamai
2020-07-10 20:43:29 -04:00
description: |
Use Dunamai to determine a dynamic version from your VCS tags.
This requires access to Python in the workflow.
2020-07-10 22:58:21 -04:00
branding:
icon: terminal
color: purple
2020-07-10 20:43:29 -04:00
inputs:
install:
description: |
Version of Dunamai to install (e.g., "1.13.2").
2020-07-10 20:43:29 -04:00
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.
2023-03-28 15:38:58 +08:00
value: ${{ steps.main.outputs.version }}
2020-07-10 20:43:29 -04:00
runs:
2023-03-28 15:38:58 +08:00
using: composite
steps:
- id: main
shell: bash
run: python -m action
2023-03-28 15:46:56 +08:00
env:
PYTHONPATH: ${{ github.action_path }}
2023-03-28 15:46:56 +08:00
INPUT_INSTALL: ${{ inputs.install }}
INPUT_ENV_VAR: ${{ inputs.env-var }}
INPUT_COMMAND: ${{ inputs.command }}
INPUT_ARGS: ${{ inputs.args }}