Skip to content

Commit

Permalink
ci(.github): fix extra endline in repo-health README script (#5861)
Browse files Browse the repository at this point in the history
Signed-off-by: Charly Molter <charly.molter@konghq.com>
  • Loading branch information
lahabana authored Jan 30, 2023
1 parent 2fa17e0 commit 8314db6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,3 @@ If you are implementing Kuma in a mission-critical environment and require enter
[kuma-gui]: https://kuma-public-assets.s3.amazonaws.com/kuma-gui-v3.jpg
[kuma-benefits]: https://kuma-public-assets.s3.amazonaws.com/kuma-benefits-v2.png


4 changes: 2 additions & 2 deletions mk/dev.mk
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ dev/sync-demo:
sed 's/\([^/]\)kuma-demo/\1{{ .Namespace }}/g' \
> app/kumactl/data/install/k8s/demo/gateway.yaml

CIRCLECI_BADGE ?= "[![CircleCI {{branch}}](https://img.shields.io/circleci/build/github/kumahq/kuma/{{branch}}?label={{branch}})](https://circleci.com/gh/kumahq/kuma/tree/{{branch}})"
CIRCLECI_BADGE ?= [![CircleCI {{branch}}](https://img.shields.io/circleci/build/github/kumahq/kuma/{{branch}}?label={{branch}})](https://circleci.com/gh/kumahq/kuma/tree/{{branch}})
.PHONY: dev/repo-health
dev/repo-health:
go run $(TOOLS_DIR)/dev/repo-health.go -action README -circleci-badge $(CIRCLECI_BADGE)
go run $(TOOLS_DIR)/dev/repo-health.go -action README -circleci-badge '$(CIRCLECI_BADGE)'
1 change: 0 additions & 1 deletion tools/dev/repo-health.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ func replaceInFile(fileName string, marker string, content string) error {
}
endMarkerIdx += startMarkerIdx + 1
out.WriteString(strings.Join(lines[endMarkerIdx:], "\n"))
out.WriteString("\n")

return os.WriteFile(fileName, out.Bytes(), os.ModePerm)
}

0 comments on commit 8314db6

Please sign in to comment.