Skip to content

christian-draeger/write-properties

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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