JoshPiper / GModStore-Version-Parser

A simple version-parsing action for switching tag / branch names into data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GModStore Deployment Action

Easily upload an addon build to GModStore.

Usage

- name: Get Upload Information
  uses: JoshPiper/GModStore-Version-Parser@v0.2.1
  id: version
- name: Dump Information
  run: echo "${{ toJSON(steps.version.outputs) }}"

Inputs

version

[**Optional, default: GITHUB_REF **] An explicit version, such as if you use a conventional commit parser.

Outputs

branch

[Boolean] True if the action is running on a branch.

tag

[Boolean] True if the action is running on a tag / release.

(raw)version

[String] Either the version tag, for the GitHub API, or the cleaned tag, for GModStore.

deploy

[String/False] The type of version which should be uploaded, or false if none. This can be passed directly into GModStore-Deployment/type.

About

A simple version-parsing action for switching tag / branch names into data.

License:ISC License


Languages

Language:JavaScript 97.9%Language:Shell 2.1%