Skip to content

Commit 4038e9c

Browse files
Add topic property and filter to guides page (#17328)
Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>
1 parent 4f3f3b0 commit 4038e9c

49 files changed

Lines changed: 351 additions & 83 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

content/actions/creating-actions/about-actions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ versions:
1111
free-pro-team: '*'
1212
enterprise-server: '>=2.22'
1313
type: 'overview'
14+
topics:
15+
- 'Action development'
16+
- 'Fundamentals'
1417
---
1518

1619
{% data reusables.actions.enterprise-beta %}

content/actions/creating-actions/creating-a-composite-run-steps-action.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ versions:
66
free-pro-team: '*'
77
enterprise-server: '>=2.22'
88
type: 'tutorial'
9+
topics:
10+
- 'Action development'
911
---
1012

1113
{% data reusables.actions.enterprise-beta %}
@@ -32,7 +34,7 @@ Before you begin, you'll create a {% data variables.product.product_name %} repo
3234
```
3335

3436
2. In the `hello-world-composite-run-steps-action` repository, create a new file called `goodbye.sh`, and add the following example code:
35-
37+
3638
```bash
3739
echo "Goodbye"
3840
```
@@ -65,12 +67,12 @@ Before you begin, you'll create a {% data variables.product.product_name %} repo
6567
required: true
6668
default: 'World'
6769
outputs:
68-
random-number:
70+
random-number:
6971
description: "Random number"
7072
value: ${{ steps.random-number-generator.outputs.random-id }}
7173
runs:
7274
using: "composite"
73-
steps:
75+
steps:
7476
- run: echo Hello ${{ inputs.who-to-greet }}.
7577
shell: bash
7678
- id: random-number-generator
@@ -82,7 +84,7 @@ Before you begin, you'll create a {% data variables.product.product_name %} repo
8284
{% endraw %}
8385
This file defines the `who-to-greet` input, maps the random generated number to the `random-number` output variable, and runs the `goodbye.sh` script. It also tells the runner how to execute the composite run steps action.
8486

85-
For more information about managing outputs, see "[`outputs` for a composite run steps](/actions/creating-actions/metadata-syntax-for-github-actions#outputs-for-composite-run-steps-actions)".
87+
For more information about managing outputs, see "[`outputs` for a composite run steps](/actions/creating-actions/metadata-syntax-for-github-actions#outputs-for-composite-run-steps-actions)".
8688

8789
For more information about how to use `github.action_path`, see "[`github context`](/actions/reference/context-and-expression-syntax-for-github-actions#github-context)".
8890

@@ -122,7 +124,7 @@ jobs:
122124
uses: actions/hello-world-composite-run-steps-action@v1
123125
with:
124126
who-to-greet: 'Mona the Octocat'
125-
- run: echo random-number ${{ steps.foo.outputs.random-number }}
127+
- run: echo random-number ${{ steps.foo.outputs.random-number }}
126128
shell: bash
127129
```
128130
{% endraw %}

content/actions/creating-actions/creating-a-docker-container-action.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ versions:
1111
free-pro-team: '*'
1212
enterprise-server: '>=2.22'
1313
type: 'tutorial'
14+
topics:
15+
- 'Action development'
16+
- 'Docker'
1417
---
1518

1619
{% data reusables.actions.enterprise-beta %}
@@ -93,7 +96,7 @@ This metadata defines one `who-to-greet` input and one `time` output parameter.
9396

9497
You can choose any base Docker image and, therefore, any language for your action. The following shell script example uses the `who-to-greet` input variable to print "Hello [who-to-greet]" in the log file.
9598

96-
Next, the script gets the current time and sets it as an output variable that actions running later in a job can use. In order for {% data variables.product.prodname_dotcom %} to recognize output variables, you must use a workflow command in a specific syntax: `echo "::set-output name=<output name>::<value>"`. For more information, see "[Workflow commands for {% data variables.product.prodname_actions %}](/actions/reference/workflow-commands-for-github-actions#setting-an-output-parameter)."
99+
Next, the script gets the current time and sets it as an output variable that actions running later in a job can use. In order for {% data variables.product.prodname_dotcom %} to recognize output variables, you must use a workflow command in a specific syntax: `echo "::set-output name=<output name>::<value>"`. For more information, see "[Workflow commands for {% data variables.product.prodname_actions %}](/actions/reference/workflow-commands-for-github-actions#setting-an-output-parameter)."
97100

98101
1. Create a new `entrypoint.sh` file in the `hello-world-docker-action` directory.
99102

@@ -102,7 +105,7 @@ Next, the script gets the current time and sets it as an output variable that ac
102105
**entrypoint.sh**
103106
```shell{:copy}
104107
#!/bin/sh -l
105-
108+
106109
echo "Hello $1"
107110
time=$(date)
108111
echo "::set-output name=time::$time"

content/actions/creating-actions/creating-a-javascript-action.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ versions:
1111
free-pro-team: '*'
1212
enterprise-server: '>=2.22'
1313
type: 'tutorial'
14+
topics:
15+
- 'Action development'
16+
- 'JavaScript'
1417
---
1518

1619
{% data reusables.actions.enterprise-beta %}

content/actions/guides/about-continuous-integration.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ versions:
1111
free-pro-team: '*'
1212
enterprise-server: '>=2.22'
1313
type: 'overview'
14+
topics:
15+
- 'CI'
16+
- 'CD'
1417
---
1518

1619
{% data reusables.actions.enterprise-beta %}
1720
{% data reusables.actions.enterprise-github-hosted-runners %}
18-
21+
1922
### About continuous integration
2023

2124
Continuous integration (CI) is a software practice that requires frequently committing code to a shared repository. Committing code more often detects errors sooner and reduces the amount of code a developer needs to debug when finding the source of an error. Frequent code updates also make it easier to merge changes from different members of a software development team. This is great for developers, who can spend more time writing code and less time debugging errors or resolving merge conflicts.

content/actions/guides/about-packaging-with-github-actions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ versions:
99
free-pro-team: '*'
1010
enterprise-server: '>=2.22'
1111
type: 'overview'
12+
topics:
13+
- 'Packaging'
1214
---
1315

1416
{% data reusables.actions.enterprise-beta %}

content/actions/guides/about-service-containers.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ versions:
99
free-pro-team: '*'
1010
enterprise-server: '>=2.22'
1111
type: 'overview'
12+
topics:
13+
- 'Containers'
14+
- 'Docker'
1215
---
1316

1417
{% data reusables.actions.enterprise-beta %}

content/actions/guides/building-and-testing-java-with-ant.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ versions:
88
free-pro-team: '*'
99
enterprise-server: '>=2.22'
1010
type: 'tutorial'
11+
topics:
12+
- 'CI'
13+
- 'Java'
14+
- 'Ant'
1115
---
1216

1317
{% data reusables.actions.enterprise-beta %}

content/actions/guides/building-and-testing-java-with-gradle.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ versions:
88
free-pro-team: '*'
99
enterprise-server: '>=2.22'
1010
type: 'tutorial'
11+
topics:
12+
- 'CI'
13+
- 'Java'
14+
- 'Gradle'
1115
---
1216

1317
{% data reusables.actions.enterprise-beta %}

content/actions/guides/building-and-testing-java-with-maven.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ versions:
88
free-pro-team: '*'
99
enterprise-server: '>=2.22'
1010
type: 'tutorial'
11+
topics:
12+
- 'CI'
13+
- 'Java'
14+
- 'Maven'
1115
---
1216

1317
{% data reusables.actions.enterprise-beta %}

0 commit comments

Comments
 (0)