mirror of
https://github.com/FranzDiebold/github-env-vars-action.git
synced 2024-11-22 08:40:59 -05:00
Merge pull request #13 from FranzDiebold/feat/add-slug-values
Feat/add slug values
This commit is contained in:
commit
e2e8f0ac89
3 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
||||
|
|
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -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. ' +
|
||||
|
|
4
index.js
4
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. ' +
|
||||
|
|
Loading…
Reference in a new issue