Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman committed Jan 25, 2024
1 parent 765605a commit 9e09948
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/readme/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand All @@ -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
Expand Down

0 comments on commit 9e09948

Please sign in to comment.