Skip to content

Commit 114b97d

Browse files
Merge pull request #8 from devwithkrishna/htfix/badge-issue-replace-all
Htfix/badge issue replace all
2 parents 9d1587c + 40f8539 commit 114b97d

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.github/workflows/auto-fill-readme.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ jobs:
4343
echo "REPO_NAME=${REPO_NAME}" >> $GITHUB_ENV
4444
echo "ORG_NAME=${ORG_NAME}" >> $GITHUB_ENV
4545
46-
- name: Replace placeholders in README.md
46+
- name: Replace placeholders in all README.md files
4747
run: |
48-
echo "Replacing placeholders..."
49-
find . -type f -name "README.md" | while read file; do
48+
echo "Replacing placeholders in all README.md files..."
49+
find . -type f -iname "README.md" -print0 | while IFS= read -r -d '' file; do
5050
echo "Processing $file"
51-
sed -i "s|{{REPO_NAME}}|${REPO_NAME}|g" "$file"
52-
sed -i "s|{{ORG_NAME}}|${ORG_NAME}|g" "$file"
51+
sed -i "s|{REPO_NAME}|${REPO_NAME}|g" "$file"
52+
sed -i "s|{ORG_NAME}|${ORG_NAME}|g" "$file"
5353
done
5454
5555
- name: Show diff for verification

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
[![terraform-lint](https://github.com/{REPO_NAME}/{REPO_NAME}/actions/workflows/terraform-lint.yml/badge.svg)](https://github.com/{REPO_NAME}/{REPO_NAME}/actions/workflows/terraform-lint.yml)
2-
[![go](https://github.com/{REPO_NAME}/{REPO_NAME}/actions/workflows/go.yml/badge.svg)](https://github.com/{REPO_NAME}/{REPO_NAME}/actions/workflows/go.yml)
3-
[![update-readme](https://github.com/{REPO_NAME}/{REPO_NAME}/actions/workflows/update-readme.yml/badge.svg)](https://github.com/{REPO_NAME}/{REPO_NAME}/actions/workflows/update-readme.yml)
4-
[![create-release](https://github.com/{REPO_NAME}/{REPO_NAME}/actions/workflows/release.yml/badge.svg)](https://github.com/{REPO_NAME}/{REPO_NAME}/actions/workflows/release.yml)
5-
[![auto-fill-readme](https://github.com/{REPO_NAME}/{REPO_NAME}/actions/workflows/auto-fill-readme.yml/badge.svg)](https://github.com/{REPO_NAME}/{REPO_NAME}/actions/workflows/auto-fill-readme.yml)
1+
[![terraform-lint](https://github.com/{ORG_NAME}/{REPO_NAME}/actions/workflows/terraform-lint.yml/badge.svg)](https://github.com/{ORG_NAME}/{REPO_NAME}/actions/workflows/terraform-lint.yml)
2+
[![go](https://github.com/{ORG_NAME}/{REPO_NAME}/actions/workflows/go.yml/badge.svg)](https://github.com/{ORG_NAME}/{REPO_NAME}/actions/workflows/go.yml)
3+
[![update-readme](https://github.com/{ORG_NAME}/{REPO_NAME}/actions/workflows/update-readme.yml/badge.svg)](https://github.com/{ORG_NAME}/{REPO_NAME}/actions/workflows/update-readme.yml)
4+
[![create-release](https://github.com/{ORG_NAME}/{REPO_NAME}/actions/workflows/release.yml/badge.svg)](https://github.com/{ORG_NAME}/{REPO_NAME}/actions/workflows/release.yml)
5+
[![auto-fill-readme](https://github.com/{ORG_NAME}/{REPO_NAME}/actions/workflows/auto-fill-readme.yml/badge.svg)](https://github.com/{ORG_NAME}/{REPO_NAME}/actions/workflows/auto-fill-readme.yml)
66

77
# {REPO_NAME}
88

99
## Examples
1010

11-
Please find the [examples]((https://github.com/{REPO_NAME}/{REPO_NAME}//tree/main/examples)) here
11+
Please find the [examples]((https://github.com/{ORG_NAME}/{REPO_NAME}//tree/main/examples)) here
1212

1313
## 📂 Structure
1414

test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
2. Initialize the Go module (replace module path):
1212
- Example:
1313
```
14-
go mod init github.com/{{ORG_NAME}}/{{REPO_NAME}}/test
14+
go mod init github.com/{ORG_NAME}/{REPO_NAME}/test
1515
```
1616
1717
### Install test dependencies (example)

0 commit comments

Comments
 (0)