Skip to content

Commit f9c844e

Browse files
committed
redundant username replacement when url can be used
1 parent 0391aa6 commit f9c844e

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/configure_project.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
required: true
1313
default: 'A new awesome project.'
1414
project_homepage_url:
15-
description: "The URL for the project's homepage."
15+
description: "The URL for the project's GitHub homepage."
1616
required: true
1717
default: 'https://github.com/username/repo'
1818
cpack_package_contact:
@@ -49,7 +49,6 @@ jobs:
4949
-e "s|{{PROJECT_DESCRIPTION}}|${{ github.event.inputs.project_description }}|g" \
5050
-e "s|{{PROJECT_HOMEPAGE_URL}}|${{ github.event.inputs.project_homepage_url }}|g" \
5151
-e "s|{{CPACK_PACKAGE_CONTACT}}|${{ github.event.inputs.cpack_package_contact }}|g" \
52-
-e "s|{{USERNAME}}|${{ github.actor }}|g" \
5352
{} +
5453
5554
- name: Create a pull request with the new name

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# {{PROJECT_NAME}}
2-
[![.github/workflows/ci-cd.yml](https://github.com/{{USERNAME}}/{{PROJECT_NAME}}/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/{{USERNAME}}/{{PROJECT_NAME}}/actions/workflows/ci-cd.yml)
2+
[![.github/workflows/ci-cd.yml]({{PROJECT_HOMEPAGE_URL}}/actions/workflows/ci-cd.yml/badge.svg)]({{PROJECT_HOMEPAGE_URL}}/actions/workflows/ci-cd.yml)
33

44
Repository template for a cross-platform project written in C++ with use of Conan and CMake. This template has also GitHub actions configured for CI/CD with static analysis by clang-tidy and cppcheck. It has also clang-format configuration file for code formatting.
55

0 commit comments

Comments
 (0)