Skip to content

Commit

Permalink
Merge pull request #544 from fjogeleit/quoting-type
Browse files Browse the repository at this point in the history
Quoting type
  • Loading branch information
fjogeleit authored Jun 26, 2023
2 parents 5c0c295 + 5b62264 commit ce08f5c
Show file tree
Hide file tree
Showing 11 changed files with 3,049 additions and 1,937 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ jobs:
| format | Specify the used format parser of your file. WIll be guessed by file extension if not provided and uses YAML as fallback. Supports `YAML` and `JSON` | |
| method | Configures the processing of none existing properties. Possible values: `CreateOrUpdate`, `Update`, `Create` | `CreateOrUpdate` |
| noCompatMode | Removes quotes from reserved words, like Y, N, yes, no, on, etc. | `false` |
| quotingType | used quotes for string values in YAML output | `'` |

#### Methods

Expand Down
1 change: 1 addition & 0 deletions __tests__/action.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ test('test success', async () => {
process.env['VALUE_PATH'] = 'backend.version'
process.env['VALUE'] = 'v1.1.0'
process.env['BRANCH'] = 'deployment/v1.1.0'
process.env['QUOTING_TYPE'] = '"'

const [{json, content}] = await runTest<{backend: {version: string}; frontend: ContentNode}>(new EnvOptions())

Expand Down
1 change: 1 addition & 0 deletions __tests__/fixtures/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ containers:
config:
prod: false,
version: 0
boolString: 'true'
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ inputs:
required: false
description: 'Removes quotes from reserved words, like Y, N, yes, no, on, etc.'
default: 'false'
quotingType:
required: false
description: QuotingType for YAML conversion, possible values are ' and ". Defaults to single quotes
default: "'"
format:
required: false
description: 'Supported file formats, possible values are YAML and JSON, will be guessed by file extension if not provided. Falls back to YAML'
Expand Down
Loading

0 comments on commit ce08f5c

Please sign in to comment.