PowerOps-MK / replace-action

GitHub Action to replace string in files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

GitHub Action to replace string in files

License:GNU General Public License v3.0


Languages

Language:Python 73.9%Language:Dockerfile 26.1%