feat: slugify a value

This commit is contained in:
rlespinasse
2021-10-12 13:10:35 +02:00
parent 9c74231893
commit ed398f784f
5 changed files with 268 additions and 0 deletions

21
action.yml Normal file
View File

@@ -0,0 +1,21 @@
name: "Slugify"
description: "Github Action to slugify a value"
author: "Romain Lespinasse"
inputs:
key:
description: "Environment variable that will hold the value and serve as prefix to slugified value"
required: true
value:
description: "Value to slugify"
required: false
branding:
icon: "crop"
color: "gray-dark"
runs:
using: "composite"
steps:
- run: ${{ github.action_path }}/slugify.sh
shell: bash
env:
INPUT_KEY: ${{ inputs.key }}
INPUT_VALUE: ${{ inputs.value }}