Skip to content

build: Derive GH owner/repo via gh #833

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions make/repo.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ GIT_COMMIT := $(shell git rev-parse "HEAD^{commit}")
export GIT_TAG ?= $(shell git describe --tags "$(GIT_COMMIT)^{commit}" --match v* --abbrev=0 2>/dev/null)
export GIT_CURRENT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)

export GITHUB_ORG := $(notdir $(realpath $(dir $(REPO_ROOT))))
export GITHUB_REPOSITORY := $(notdir $(REPO_ROOT))
export GITHUB_ORG := $(shell gh repo view --jq '.owner.login' --json owner)
export GITHUB_REPOSITORY := $(shell gh repo view --jq '.name' --json name)

ifneq ($(shell git status --porcelain 2>/dev/null; echo $$?), 0)
export GIT_TREE_STATE := dirty
Expand Down
Loading