jsdaniell / create-json Goto Github PK
View Code? Open in Web Editor NEWAn action to use with Github Actions and create a .json file to use on other steps of the workflow.
License: MIT License
An action to use with Github Actions and create a .json file to use on other steps of the workflow.
License: MIT License
I get the warning Warning: The
set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
I tried creating a simple JSON file with the following content:
{
"auth": {
"user": "",
"password": ""
}
}
To do this I created a repository variable containing the above JSON and then tried to call it in my deploy job. This is for a .NET application and looks as follows:
- name: Create App Settings
id: create-json
uses: jsdaniell/[email protected]
with:
name: 'appsettings.json'
json: ${{ vars.APP_SETTINGS }}
What I see being created though is a file that looks like this:
auth:
user:
password:
What's causing this formatting issue?
Hi, it seems this package is using node 16 which is now deprecated. I guess the runs
block needs to be updated.
Please update the following actions to use Node.js 20: jsdaniell/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
I an try to create a file based on response of a previous step, and when i try to create a file using this lib, generates this error:
Error: An error occurred trying to start process '/home/runner/runners/2.301.1/externals/node16/bin/node' with working directory '/home/runner/work/landing-page-processor/landing-page-processor'. Argument list too long
See my file in:
https://firebasestorage.googleapis.com/v0/b/sortegram.appspot.com/o/artifact.json?alt=media&token=ab33d5f4-ce6d-456b-af62-e05043e4a777
I think that this action is the culprit of some recent warnings I'm getting in my action logs. More specifically this error:
The
set-output
command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
You can read about how to change it here.
Only the compiled code is available in your repo, but if you share the Typescript I can help change it if needed.
Line 273 in c341fa9
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.