Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.

Commit f2f1ef7

Browse files
committed
Update rename_project.yml
1 parent adfcb7f commit f2f1ef7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/rename_project.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ jobs:
2222

2323
- run: echo "REPOSITORY_OWNER=$(echo '${{ github.repository }}' | awk -F '/' '{print $1}')" >> $GITHUB_ENV
2424
shell: bash
25+
26+
- name: Is this still a template
27+
id: is_template
28+
run: echo "::set-output name=is_template::$(ls .github/template.yml &> /dev/null && echo true || echo false)"
2529

2630
- name: Rename the project
31+
if: steps.is_template.outputs.is_template == 'true'
2732
run: |
2833
echo "Renaming the project with -a(author) ${{ env.REPOSITORY_OWNER }} -n(name) ${{ env.REPOSITORY_NAME }} -u(urlname) ${{ env.REPOSITORY_URLNAME }}"
2934
.github/rename_project.sh -a ${{ env.REPOSITORY_OWNER }} -n ${{ env.REPOSITORY_NAME }} -u ${{ env.REPOSITORY_URLNAME }} -d "Awesome ${{ env.REPOSITORY_NAME }} created by ${{ env.REPOSITORY_OWNER }}"

0 commit comments

Comments
 (0)