Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
edit

GitHub Action

Write Properties

1.0.0

Write Properties

edit

Write Properties

Write properties to a properties file

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Write Properties

uses: christian-draeger/[email protected]

Learn more about this action in christian-draeger/write-properties

Choose a version

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 you want to write.

value

Required The value of the given property.

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.property'
    value: 'some value'

License

The scripts and documentation in this project are released under the MIT License