Skip to content

Set versioning labels based on tag reference or default values 🏷

License

Notifications You must be signed in to change notification settings

k15g/action-version-labels

Repository files navigation

Action: Version labels

- name: Prepare version labels
  uses: k15g/action-version-labels@edge

Inputs

match(optional)

- name: Prepare version labels
  uses: k15g/action-version-labels@edge
  with:
    match: ^refs/tags/v # default

prefix(optional)

- name: Prepare version labels
  uses: k15g/action-version-labels@edge
  with:
    prefix: project

timestamp_* (optional)

channel_* (optional)

- name: Prepare version labels
  uses: k15g/action-version-labels@edge
  with:
    channel_default: edge # default
    channel_regex: ^refs/tags/v([0-9]+)\..+$ # default
    channel_replace: v$1 # default

label_* (optional)

- name: Prepare version labels
  uses: k15g/action-version-labels@edge
  with:
    label_default: dev # default
    label_regex: ^refs/tags/(.+)$ # default
    label_replace: $1 # default

version_* (optional)

- name: Prepare version labels
  uses: k15g/action-version-labels@edge
  with:
    version_default: dev-%timestamp% # default
    version_regex: ^refs/tags/v(.+)$ # default
    version_replace: $1 # default