Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ Convert an Environment File to or from JSON for Outputs or Writing to a File.

## Examples

Some more examples in the test workflow: [.github/workflows/test.yaml](.github/workflows/test.yaml)
There are some more examples in the test workflow: [.github/workflows/test.yaml](.github/workflows/test.yaml)

To see this used in a deploy workflow, see: https://github.com/cssnr/django5-boiler/blob/master/.github/workflows/deploy.yaml
For a full deploy workflow example, see:
https://github.com/cssnr/django5-boiler/blob/master/.github/workflows/deploy.yaml

# Support

Expand Down
6 changes: 4 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27941,7 +27941,9 @@ const dotenv = __nccwpck_require__(8889)

// Parse Inputs
const inputs = parseInputs()
core.startGroup('Inputs')
console.log('inputs:', inputs)
core.endGroup() // Inputs

// Process Data
let result
Expand Down Expand Up @@ -28025,7 +28027,7 @@ function parseInputs() {
*/
async function writeSummary(inputs, result) {
const prep = inputs.type === 'json' ? 'to' : 'from'
core.summary.addRaw(`### Environment ${prep} JSON Action\n`)
core.summary.addRaw(`## Environment ${prep} JSON Action\n`)

if (inputs.dest) {
core.summary.addRaw(`💾 ✔️ \`${inputs.dest}\`\n`)
Expand Down Expand Up @@ -28054,7 +28056,7 @@ async function writeSummary(inputs, result) {

const text = 'View Documentation, Report Issues or Request Features'
const link = 'https://github.com/cssnr/env-json-action'
core.summary.addRaw(`\n[${text}](${link}?tab=readme-ov-file#readme)`)
core.summary.addRaw(`\n[${text}](${link}?tab=readme-ov-file#readme)\n\n---`)
await core.summary.write()
}

Expand Down
27 changes: 20 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ const dotenv = require('dotenv')

// Parse Inputs
const inputs = parseInputs()
core.startGroup('Inputs')
console.log('inputs:', inputs)
core.endGroup() // Inputs

// Process Data
let result
Expand Down Expand Up @@ -92,7 +94,7 @@ function parseInputs() {
*/
async function writeSummary(inputs, result) {
const prep = inputs.type === 'json' ? 'to' : 'from'
core.summary.addRaw(`### Environment ${prep} JSON Action\n`)
core.summary.addRaw(`## Environment ${prep} JSON Action\n`)

if (inputs.dest) {
core.summary.addRaw(`💾 ✔️ \`${inputs.dest}\`\n`)
Expand Down Expand Up @@ -121,6 +123,6 @@ async function writeSummary(inputs, result) {

const text = 'View Documentation, Report Issues or Request Features'
const link = 'https://github.com/cssnr/env-json-action'
core.summary.addRaw(`\n[${text}](${link}?tab=readme-ov-file#readme)`)
core.summary.addRaw(`\n[${text}](${link}?tab=readme-ov-file#readme)\n\n---`)
await core.summary.write()
}