-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ export README_YAML ?= README.yaml | |
export README_TEMPLATE_REPO_REMOTE_NAME ?= origin | ||
export README_TEMPLATE_REPO_REMOTE ?= $(shell git remote get-url $(README_TEMPLATE_REPO_REMOTE_NAME)) | ||
|
||
ifneq ($(strip $(README_TEMPLATE_REPO_REMOTE)),) | ||
# Parse https://github.com/... | ||
ifneq (,$(findstring https://,$(README_TEMPLATE_REPO_REMOTE))) | ||
export README_TEMPLATE_REPO_ORG ?= $(shell basename $(shell dirname $(README_TEMPLATE_REPO_REMOTE))) | ||
|
@@ -14,6 +15,7 @@ endif | |
ifneq (,$(findstring [email protected],$(README_TEMPLATE_REPO_REMOTE))) | ||
export README_TEMPLATE_REPO_ORG ?= $(lastword $(subst :, ,$(subst /,,$(dir $(README_TEMPLATE_REPO_REMOTE))))) | ||
endif | ||
endif | ||
|
||
export README_TEMPLATE_REPO ?= .github | ||
export README_TEMPLATE_REPO_REF ?= blob/main | ||
|