Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christian-draeger/write-properties
Github action to write java properties files
https://github.com/christian-draeger/write-properties
action actions android ci file github github-action github-actions groovy java jvm kotlin properties spring-boot write
Last synced: 11 days ago
JSON representation
Github action to write java properties files
- Host: GitHub
- URL: https://github.com/christian-draeger/write-properties
- Owner: christian-draeger
- License: mit
- Created: 2020-01-19T16:17:16.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T21:21:41.000Z (over 2 years ago)
- Last Synced: 2024-10-13T09:26:52.180Z (26 days ago)
- Topics: action, actions, android, ci, file, github, github-action, github-actions, groovy, java, jvm, kotlin, properties, spring-boot, write
- Language: Shell
- Homepage:
- Size: 15.6 KB
- Stars: 14
- Watchers: 2
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-actions - Write Properties - Write values to `.properties` files. (Community Resources / Utility)
- fucking-awesome-actions - Write Properties - Write values to `.properties` files. (Community Resources / Utility)
- awesome-workflows - Write Properties - Write values to `.properties` files. (Community Resources / Utility)
README
# Write Properties
This is a GitHub action to write to java `.properties` files.
**Note:** It will work for all file-types that follow the `key=value` pattern.
> If you are also looking for an action that enables you to **read values** from `.properties` files use
> [Read Properties action](https://github.com/christian-draeger/read-properties)## Inputs
### `path`
**Required** The path to properties file to read.
### `property`
**Required** The property or properties you want to write.
### `value`
**Required** The value of the given property or properties, in the same order.
## Example usage
- name: Write value to Properties-file
uses: christian-draeger/[email protected]
with:
path: './src/main/resources/application.properties'
property: |
'the.key.of.the.first.property'
'the.key.of.the.second.property'
value: |
'first value'
'second value'# License
The scripts and documentation in this project are released under the [MIT License](LICENSE)