mirror of
https://github.com/rlespinasse/slugify-value.git
synced 2026-05-17 18:25:47 +00:00
fix: use environment file to manage outputs
This commit is contained in:
12
slugify.sh
12
slugify.sh
@@ -57,11 +57,13 @@ SLUG_CS_VALUE=$(slug "$CS_VALUE")
|
|||||||
SLUG_URL_VALUE=$(slug_url "$VALUE")
|
SLUG_URL_VALUE=$(slug_url "$VALUE")
|
||||||
SLUG_URL_CS_VALUE=$(slug_url "$CS_VALUE")
|
SLUG_URL_CS_VALUE=$(slug_url "$CS_VALUE")
|
||||||
|
|
||||||
echo "::set-output name=value::${CS_VALUE}"
|
{
|
||||||
echo "::set-output name=slug::${SLUG_VALUE}"
|
echo "value=${CS_VALUE}"
|
||||||
echo "::set-output name=slug-cs::${SLUG_CS_VALUE}"
|
echo "slug=${SLUG_VALUE}"
|
||||||
echo "::set-output name=slug-url::${SLUG_URL_VALUE}"
|
echo "slug-cs=${SLUG_CS_VALUE}"
|
||||||
echo "::set-output name=slug-url-cs::${SLUG_URL_CS_VALUE}"
|
echo "slug-url=${SLUG_URL_VALUE}"
|
||||||
|
echo "slug-url-cs=${SLUG_URL_CS_VALUE}"
|
||||||
|
} >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
if [ "${INPUT_PUBLISH_ENV}" == "true" ]; then
|
if [ "${INPUT_PUBLISH_ENV}" == "true" ]; then
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user