/replace-action

GitHub Action to replace string in files

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Replace - Docker Action

GitHub Action to replace string in files

Usage

Example workflow

This example replaces hello with the input for the given JSON file

name: My Workflow
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Find and Replace
        uses: powerops-mk/replace-action@main
        with:
          path: ./files
          json: input.json
          find: hello

Inputs

Input Description
path The path of the files to replace
json JSON file to match file with replace String
find The String to search in files

Outputs

Output Description
modified_count The number of files that have been modified