Skip to content

Console app and GitHub action for editing configuration files

Notifications You must be signed in to change notification settings

ci-space/edit-config

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

Repository files navigation

edit-config

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

Workflow examples based on edit-config

Usage

Available actions:

  • Up image version
  • Append: add value to array / concat string / add number

Up image version

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

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'