diff --git a/README.md b/README.md index 8301ad4..08e0d33 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![GitHub Action: View on Marketplace](https://img.shields.io/badge/GitHub%20Action-View_on_Marketplace-28a745?logo=github)](https://github.com/marketplace/actions/github-environment-variables-action) [![Demo: available](https://img.shields.io/badge/Demo-available-orange)](.github/workflows/demo.yml) -![Version: v1.2.0](https://img.shields.io/badge/Version-v1.2.0-brightgreen) +[![Version: v1.2.0](https://img.shields.io/badge/Version-v1.2.0-brightgreen)](https://github.com/FranzDiebold/github-env-vars-action/releases/tag/v1.2.0) [![Lint and Test](https://github.com/FranzDiebold/github-env-vars-action/workflows/Lint%20and%20Test/badge.svg)](https://github.com/FranzDiebold/github-env-vars-action/actions?query=workflow%3A%22Lint+and+Test%22) [![license: MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg)](./LICENSE) diff --git a/dist/index.js b/dist/index.js index 661370a..e3797f6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -263,7 +263,7 @@ try { ref = process.env.GITHUB_REF; if (ref) { - core.exportVariable('GITHUB_REF_SLUG', slufigy(ref)); + core.exportVariable('GITHUB_REF_SLUG', slugify(ref)); core.info(`Set GITHUB_REF_SLUG=${process.env.GITHUB_REF_SLUG}`); } else { core.warning('Environment variable "GITHUB_REF" not set. ' + @@ -275,7 +275,7 @@ try { core.exportVariable('GITHUB_REF_NAME', refName); core.info(`Set GITHUB_REF_NAME=${process.env.GITHUB_REF_NAME}`); - core.exportVariable('GITHUB_REF_NAME_SLUG', slufigy(refName)); + core.exportVariable('GITHUB_REF_NAME_SLUG', slugify(refName)); core.info(`Set GITHUB_REF_NAME_SLUG=${process.env.GITHUB_REF_NAME_SLUG}`); } else { core.warning('Environment variable "GITHUB_REF" not set. ' + diff --git a/index.js b/index.js index 54259ef..413f2b4 100644 --- a/index.js +++ b/index.js @@ -102,7 +102,7 @@ try { ref = process.env.GITHUB_REF; if (ref) { - core.exportVariable('GITHUB_REF_SLUG', slufigy(ref)); + core.exportVariable('GITHUB_REF_SLUG', slugify(ref)); core.info(`Set GITHUB_REF_SLUG=${process.env.GITHUB_REF_SLUG}`); } else { core.warning('Environment variable "GITHUB_REF" not set. ' + @@ -114,7 +114,7 @@ try { core.exportVariable('GITHUB_REF_NAME', refName); core.info(`Set GITHUB_REF_NAME=${process.env.GITHUB_REF_NAME}`); - core.exportVariable('GITHUB_REF_NAME_SLUG', slufigy(refName)); + core.exportVariable('GITHUB_REF_NAME_SLUG', slugify(refName)); core.info(`Set GITHUB_REF_NAME_SLUG=${process.env.GITHUB_REF_NAME_SLUG}`); } else { core.warning('Environment variable "GITHUB_REF" not set. ' +