-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ and use in this way: | |
```yaml | ||
- name: create-json | ||
id: create-json | ||
uses: jsdaniell/[email protected].1 | ||
uses: jsdaniell/[email protected].2 | ||
with: | ||
name: "credentials.json" | ||
json: ${{ secrets.MY_JSON }} | ||
|
@@ -43,7 +43,7 @@ Or just declare a string of a json on the property `json` like: | |
```yaml | ||
- name: create-json | ||
id: create-json | ||
uses: jsdaniell/[email protected].1 | ||
uses: jsdaniell/[email protected].2 | ||
with: | ||
name: "new-json-file.json" | ||
json: '{"name":"jsdaniell", "password":"mypass"}' | ||
|
@@ -55,7 +55,7 @@ You also can save the json on a subdirectory using the property `dir`: | |
```yaml | ||
- name: create-json | ||
id: create-json | ||
uses: jsdaniell/[email protected].1 | ||
uses: jsdaniell/[email protected].2 | ||
with: | ||
name: "credentials.json" | ||
json: ${{ secrets.CREDENTIALS_JSON }} | ||
|
@@ -69,14 +69,14 @@ If you want to create more than one json files, you have to specify different ID | |
```yaml | ||
- name: create-json | ||
id: create-json-1 # First ID | ||
uses: jsdaniell/[email protected].1 | ||
uses: jsdaniell/[email protected].2 | ||
with: | ||
name: "credentials.json" | ||
json: ${{ secrets.CREDENTIALS_JSON }} | ||
dir: 'src/' | ||
- name: create-json | ||
id: create-json-2 # Second ID | ||
uses: jsdaniell/[email protected].1 | ||
uses: jsdaniell/[email protected].2 | ||
with: | ||
name: "other.json" | ||
json: '{"name":"jsdaniell", "password":"mypass"}' | ||
|
@@ -103,7 +103,7 @@ jobs: | |
- run: cd src && go mod vendor | ||
- name: create-json | ||
id: create-json | ||
uses: jsdaniell/[email protected].1 | ||
uses: jsdaniell/[email protected].2 | ||
with: | ||
name: "devdatatools-firebase-adminsdk.json" | ||
json: ${{ secrets.CREDENTIALS_JSON }} | ||
|
@@ -123,4 +123,4 @@ After commit and use with Heroku the file is deleted after the workflow and the | |
|
||
You can submit an issue or PR anytime for the improvement this action! | ||
|
||
Version v1.2.1 (Node 16) | ||
Version v1.2.2 (Node 16) |