forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mars-2020/post-launch-updates' of https://github.com/gi…
…thub/docs-internal into mars-2020/post-launch-updates
- Loading branch information
Showing
34 changed files
with
698 additions
and
35 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
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
92 changes: 92 additions & 0 deletions
92
content/actions/using-github-hosted-runners/customizing-github-hosted-runners.md
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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
--- | ||
title: Customizing GitHub-hosted runners | ||
intro: >- | ||
You can install additional software on GitHub-hosted runners as a | ||
part of your workflow. | ||
product: '{% data reusables.gated-features.actions %}' | ||
versions: | ||
free-pro-team: '*' | ||
enterprise-server: '>=2.22' | ||
type: tutorial | ||
topics: | ||
- Workflows | ||
--- | ||
|
||
{% data reusables.actions.enterprise-github-hosted-runners %} | ||
|
||
If you require additional software packages on {% data variables.product.prodname_dotcom %}-hosted runners, you can create a job that installs the packages as part of your workflow. | ||
|
||
To see which packages are already installed by default, see "[Preinstalled software](/actions/using-github-hosted-runners/about-github-hosted-runners#preinstalled-software)." | ||
|
||
This guide demonstrates how to create a job that installs additional software on a {% data variables.product.prodname_dotcom %}-hosted runner. | ||
|
||
### Installing software on Ubuntu runners | ||
|
||
The following example demonstrates how to install an `apt` package as part of a job. | ||
|
||
{% raw %} | ||
```yaml | ||
name: Build on Ubuntu | ||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
- name: Install jq tool | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install jq | ||
``` | ||
{% endraw %} | ||
{% note %} | ||
**Note:** Always run `sudo apt-get update` before installing a package. In case the `apt` index is stale, this command fetches and re-indexes any available packages, which helps prevent package installation failures. | ||
|
||
{% endnote %} | ||
|
||
### Installing software on macOS runners | ||
|
||
The following example demonstrates how to install Brew packages and casks as part of a job. | ||
|
||
{% raw %} | ||
```yaml | ||
name: Build on macOS | ||
on: push | ||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
- name: Install GitHub CLI | ||
run: | | ||
brew update | ||
brew install gh | ||
- name: Install Microsoft Edge | ||
run: | | ||
brew update | ||
brew install --cask microsoft-edge | ||
``` | ||
{% endraw %} | ||
|
||
### Installing software on Windows runners | ||
|
||
The following example demonstrates how to use [Chocolatey](https://community.chocolatey.org/packages) to install the {% data variables.product.prodname_dotcom %} CLI as part of a job. | ||
|
||
{% raw %} | ||
```yaml | ||
name: Build on Windows | ||
on: push | ||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- run: choco install gh | ||
- run: gh version | ||
``` | ||
{% endraw %} |
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"FEATURE_TEST_TRUE": true, | ||
"FEATURE_TEST_FALSE": false | ||
"FEATURE_TEST_FALSE": false, | ||
"FEATURE_NEW_SITETREE": false | ||
} |
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
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% for categoryPage in currentProductTree.childPages %} | ||
{% if categoryPage.href == currentPath %}{% assign currentCategory = categoryPage %}{% endif %} | ||
{% endfor %} | ||
|
||
{% if currentCategory.page.shortTitle and currentCategory.page.shortTitle != '' %}{% assign currentCategoryTitle = currentCategory.page.shortTitle %}{% else %}{% assign currentCategoryTitle = currentCategory.page.title %}{% endif %} | ||
|
||
{% assign maxArticles = 10 %} | ||
|
||
<div class="py-6 all-articles-list"> | ||
<h2 class="font-mktg mb-4">{{ currentCategoryTitle }} docs</h2> | ||
|
||
<div class="d-flex gutter flex-wrap"> | ||
{% for childPage in currentCategory.childPages %} | ||
{% unless childPage.page.hidden %} | ||
<div class="col-12 col-lg-4 mb-6 height-full"> | ||
<h4 class="mb-3"><a href="{{ childPage.href }}">{{ childPage.page.title }}</a></h4> | ||
<ul class="list-style-none"> | ||
{% for grandchildPage in childPage.childPages %} | ||
<li class="mb-3 {% if forloop.index > maxArticles %}d-none{% endif %}"> | ||
<a href="{{ grandchildPage.href }}"> | ||
{{ grandchildPage.page.title }} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
{% assign numArticles = childPage.childPages | obj_size %} | ||
{% if numArticles > maxArticles %} | ||
<button class="js-all-articles-show-more btn-link Link--secondary">Show {{ numArticles | minus: maxArticles }} more {% octicon "chevron-up" class="v-align-text-bottom" %}</button> | ||
{% endif %} | ||
</ul> | ||
</div> | ||
{% endunless %} | ||
{% endfor %} | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% if tocItems %} | ||
|
||
{% for tocItem in tocItems %} | ||
|
||
{% assign title = tocItem.title %} | ||
{% assign fullPath = tocItem.fullPath %} | ||
{% assign intro = tocItem.intro %} | ||
{% include liquid-tags/link-with-intro %} | ||
|
||
{% endfor %} | ||
|
||
{% endif %} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% if tocItems %} | ||
<ul> | ||
{% for tocItem in tocItems %} | ||
|
||
{% assign title = tocItem.title %} | ||
{% assign fullPath = tocItem.fullPath %} | ||
{% assign intro = tocItem.intro %} | ||
|
||
<li>{% include liquid-tags/link %} | ||
{% if tocItem.childTocItems %} | ||
{% unless page.relativePath == "github/index.md" %} | ||
<ul> | ||
{% for childItem in tocItem.childTocItems %} | ||
{% assign title = childItem.title %} | ||
{% assign fullPath = childItem.fullPath %} | ||
<li>{% include liquid-tags/link %}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endunless %} | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{% assign maxArticles = 10 %} | ||
|
||
{% if currentProductTree.page.shortTitle and currentProductTree.page.shortTitle != '' %}{% assign productTitle = currentProductTree.page.shortTitle %}{% else %}{% assign productTitle = currentProductTree.page.title %}{% endif %} | ||
|
||
<div class="py-6 all-articles-list"> | ||
<h2 class="font-mktg mb-4">All {{ productTitle }} docs</h2> | ||
|
||
<div class="d-flex gutter flex-wrap"> | ||
{% for childPage in currentProductTree.childPages %} | ||
{% if childPage.page.documentType == "article" %}{% assign standaloneCategory = true %}{% else %}{% assign standaloneCategory = false %}{% endif %} | ||
{% unless standaloneCategory %} | ||
<div class="col-12 col-lg-4 mb-6 height-full"> | ||
<h4 class="mb-3"><a href="{{ childPage.href }}">{{ childPage.page.title }}</a></h4> | ||
|
||
{% if childPage.childPages and childPage.childPages[0].page.documentType == "mapTopic" %} | ||
<ul class="list-style-none"> | ||
{% for grandchildPage in childPage.childPages %} | ||
{% unless grandchildPage.page.hidden %} | ||
{% assign numArticles = childPage.childPages | obj_size %} | ||
<li class="mb-3 {% if forloop.index > maxArticles %}d-none{% endif %}"> | ||
<a href="{{ grandchildPage.href }}"> | ||
{{ grandchildPage.page.title }} | ||
</a> | ||
</li> | ||
{% if numArticles > maxArticles %} | ||
<button class="js-all-articles-show-more btn-link Link--secondary">Show {{ numArticles | minus: maxArticles }} more {% octicon "chevron-up" class="v-align-text-bottom" %}</button> | ||
{% endif %} | ||
{% endunless %} | ||
{% endfor %} | ||
</ul> | ||
{% else %} | ||
<ul class="list-style-none"> | ||
{% assign numArticles = childPage.childPages | obj_size %} | ||
{% for grandchildPage in childPage.childPages %} | ||
<li class="mb-3 {% if forloop.index > maxArticles %}d-none{% endif %}"><a href="{{ grandchildPage.href }}">{{ grandchildPage.page.title }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
{% if numArticles > maxArticles %} | ||
<button class="js-all-articles-show-more btn-link Link--secondary">Show {{ numArticles | minus: maxArticles }} more {% octicon "chevron-up" class="v-align-text-bottom" %}</button> | ||
{% endif %} | ||
{% endif %} | ||
</div> | ||
{% endunless %} | ||
{% endfor %} | ||
</div> | ||
</div> |
Oops, something went wrong.