From 9184b3ea33a6a5d0d775be0bfb2d1cda3e43e733 Mon Sep 17 00:00:00 2001 From: Franz Diebold Date: Thu, 16 Jul 2020 11:38:13 +0200 Subject: [PATCH 1/2] Improve documentation. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) From ad44217b03041306e08907d7c656fd88982b70e9 Mon Sep 17 00:00:00 2001 From: Franz Diebold Date: Thu, 16 Jul 2020 11:38:50 +0200 Subject: [PATCH 2/2] Fix typo. --- dist/index.js | 4 ++-- index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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. ' +