Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ci-space/edit-config

Console app and GitHub action for editing configuration files
https://github.com/ci-space/edit-config

continuous-integration github-actions go semver-release

Last synced: about 10 hours ago
JSON representation

Console app and GitHub action for editing configuration files

Awesome Lists containing this project

README

        

# edit-config

edit-config - is console app and GitHub action for editing configuration files

## Workflow examples based on edit-config
- [Manual release workflow with up image version](./docs/example_release_up_image_version.md)

## Usage

Available actions:
- Up image version
- Append: add value to array / concat string / add number

### Up image version

```yaml
jobs:
up-image-version:
steps:
- name: Up image version
id: version
uses: ci-space/edit-config@master
with:
file: action.yaml
action: up-image-version
pointer: runs.image
value: ${{ github.event.inputs.version }}

- name: Print image version
run: echo ${{ steps.version.outputs.new-version }}
```

### Append value to array

```yaml
jobs:
append-value-to-array:
steps:
- name: Append value to array
uses: ci-space/edit-config@master
with:
file: users.yaml
action: append
pointer: users[0].phones
value: '123'
```