O Que É GITHUB_SERVER_URL?
GITHUB_SERVER_URL é a URL web base da instância do GitHub, por exemplo https://github.com.
GITHUB_SERVER_URL permite construir links que funcionam tanto no github.com quanto no GitHub Enterprise Server, em vez de codificar o domínio de forma fixa.
Exemplo
Construa um link portátil para o commit.
shell
echo "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}"Principais conclusões
- GITHUB_SERVER_URL é a URL base do GitHub.
- Difere no GitHub Enterprise.
- Use-a em vez de codificar github.com de forma fixa.
Guias relacionados
What Is GITHUB_API_URL?GITHUB_API_URL is the REST API base URL in a GitHub Actions run. Learn how to use it for portable API calls.
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 GITHUB_SHA?GITHUB_SHA is the commit SHA that triggered a GitHub Actions workflow run. Learn what it contains and how to…