replacer-action
ActionsTags
(2)Auto-update README.md file according to the source code.
- Insert a start tag and stop tag to a text file, for example
<!-- replacer_start -->
<div>User name will appear here instead</div>
<!-- replacer_end -->
- Prepare a file with the text that you want to inject
$ echo -e '<div>This is the incoming text block</div>\n<div>It worked!</div>' > test_results.log
name: Update README.md
on:
push:
branches: [master]
paths-ignore:
- "README.md"
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Prepare source file
run: |
echo "<div>$(whoami)</div>" > test_results.log
- uses: unfor19/replacer-action@v1.0.0
name: Update README.md file
with:
src-file-path: "test_results.log"
dst-file-path: "README.md"
start-value: "<!-- replacer_start -->"
end-value: "<!-- replacer_end -->"
git-user-name: "GitHub Actions"
git-user-email: "githubactions@meirg.co.il"
git-commit-msg: "Updated by GitHubActions"
git-skip-commit: false
git-skip-push: false
create-backup: true
Created and maintained by Meir Gabay
This project is licensed under the MIT License - see the LICENSE file for details
replacer-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.