O Que É GITHUB_REPOSITORY_OWNER?
GITHUB_REPOSITORY_OWNER é a conta (usuário ou org) que possui o repositório.
Quando você só precisa do owner - para um namespace de registry ou uma chamada de API no nível da org - GITHUB_REPOSITORY_OWNER poupa você de separar GITHUB_REPOSITORY.
Exemplo
Use o owner como namespace de registry.
shell
echo "ghcr.io/${GITHUB_REPOSITORY_OWNER}/app"Principais conclusões
- GITHUB_REPOSITORY_OWNER é o usuário/org proprietário.
- Útil para namespaces de registry.
- Derivado de GITHUB_REPOSITORY.
Guias relacionados
What Is GITHUB_REPOSITORY?GITHUB_REPOSITORY is the owner/name slug of the repo running a GitHub Actions workflow, like octocat/hello-wo…
What Is GHCR? GitHub Container Registry ExplainedGHCR is GitHub Container Registry, hosting images under ghcr.io tied to GitHub identities. Learn how auth, pe…
What Is GITHUB_ACTOR?GITHUB_ACTOR is the username that triggered a GitHub Actions workflow run. Learn how it is set and used for a…