tickx / var-to-dotenv Goto Github PK
View Code? Open in Web Editor NEWA GitHub action that appends a variable to a dotenv file
License: MIT License
A GitHub action that appends a variable to a dotenv file
License: MIT License
Run TickX/[email protected]
/home/runner/work/_actions/TickX/var-to-dotenv/v1.1.1/dist/index.js:293
.replace(/%/g, '%25')
^
TypeError: (s || "").replace is not a function
at escapeData (/home/runner/work/_actions/TickX/var-to-dotenv/v1.1.1/dist/index.js:293:10)
at Command.toString (/home/runner/work/_actions/TickX/var-to-dotenv/v1.1.1/dist/index.js:287:35)
at issueCommand (/home/runner/work/_actions/TickX/var-to-dotenv/v1.1.1/dist/index.js:250:30)
at Object.issue (/home/runner/work/_actions/TickX/var-to-dotenv/v1.1.1/dist/index.js:254:5)
at error (/home/runner/work/_actions/TickX/var-to-dotenv/v1.1.1/dist/index.js:432:15)
at Object.setFailed (/home/runner/work/_actions/TickX/var-to-dotenv/v1.1.1/dist/index.js:413:5)
at Object.131 (/home/runner/work/_actions/TickX/var-to-dotenv/v1.1.1/dist/index.js:218:10)
at __webpack_require__ (/home/runner/work/_actions/TickX/var-to-dotenv/v1.1.1/dist/index.js:22:30)
at startup (/home/runner/work/_actions/TickX/var-to-dotenv/v1.1.1/dist/index.js:37:19)
at /home/runner/work/_actions/TickX/var-to-dotenv/v1.1.1/dist/index.js:41:18
It seems like there are doublequtes on the Value side missing. Therefore special characters are getting interpreted and cut off the actual content.
This looks like an easy fix to wrap the Value with doublequotes to avoid special character interpretation
.env KEY1=ABC KEY2=EFG KEY3=HIJ#KLM
debug> require("dotenv").config(); { parsed: { KEY1: 'ABC', KEY2: 'EFG', KEY3: 'HIJ' } }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.