| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4f3f3b0 commit 4038e9c
49 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,9 @@ versions: | |||
| 11 | 11 | free-pro-team: '*' | |
| 12 | 12 | enterprise-server: '>=2.22' | |
| 13 | 13 | type: 'overview' | |
| 14 | + topics: | ||
| 15 | + - 'Action development' | ||
| 16 | + - 'Fundamentals' | ||
| 14 | 17 | --- | |
| 15 | 18 | ||
| 16 | 19 | {% data reusables.actions.enterprise-beta %} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,6 +6,8 @@ versions: | |||
| 6 | 6 | free-pro-team: '*' | |
| 7 | 7 | enterprise-server: '>=2.22' | |
| 8 | 8 | type: 'tutorial' | |
| 9 | + topics: | ||
| 10 | + - 'Action development' | ||
| 9 | 11 | --- | |
| 10 | 12 | ||
| 11 | 13 | {% data reusables.actions.enterprise-beta %} | |
@@ -32,7 +34,7 @@ Before you begin, you'll create a {% data variables.product.product_name %} repo | |||
| 32 | 34 | ``` | |
| 33 | 35 | ||
| 34 | 36 | 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 | + | ||
| 36 | 38 | ```bash | |
| 37 | 39 | echo "Goodbye" | |
| 38 | 40 | ``` | |
@@ -65,12 +67,12 @@ Before you begin, you'll create a {% data variables.product.product_name %} repo | |||
| 65 | 67 | required: true | |
| 66 | 68 | default: 'World' | |
| 67 | 69 | outputs: | |
| 68 | - random-number: | ||
| 70 | + random-number: | ||
| 69 | 71 | description: "Random number" | |
| 70 | 72 | value: ${{ steps.random-number-generator.outputs.random-id }} | |
| 71 | 73 | runs: | |
| 72 | 74 | using: "composite" | |
| 73 | - steps: | ||
| 75 | + steps: | ||
| 74 | 76 | - run: echo Hello ${{ inputs.who-to-greet }}. | |
| 75 | 77 | shell: bash | |
| 76 | 78 | - id: random-number-generator | |
@@ -82,7 +84,7 @@ Before you begin, you'll create a {% data variables.product.product_name %} repo | |||
| 82 | 84 | {% endraw %} | |
| 83 | 85 | 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. | |
| 84 | 86 | ||
| 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)". | ||
| 86 | 88 | ||
| 87 | 89 | For more information about how to use `github.action_path`, see "[`github context`](/actions/reference/context-and-expression-syntax-for-github-actions#github-context)". | |
| 88 | 90 | ||
@@ -122,7 +124,7 @@ jobs: | |||
| 122 | 124 | uses: actions/hello-world-composite-run-steps-action@v1 | |
| 123 | 125 | with: | |
| 124 | 126 | 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 }} | ||
| 126 | 128 | shell: bash | |
| 127 | 129 | ``` | |
| 128 | 130 | {% endraw %} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,9 @@ versions: | |||
| 11 | 11 | free-pro-team: '*' | |
| 12 | 12 | enterprise-server: '>=2.22' | |
| 13 | 13 | type: 'tutorial' | |
| 14 | + topics: | ||
| 15 | + - 'Action development' | ||
| 16 | + - 'Docker' | ||
| 14 | 17 | --- | |
| 15 | 18 | ||
| 16 | 19 | {% data reusables.actions.enterprise-beta %} | |
@@ -93,7 +96,7 @@ This metadata defines one `who-to-greet` input and one `time` output parameter. | |||
| 93 | 96 | ||
| 94 | 97 | 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. | |
| 95 | 98 | ||
| 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)." | ||
| 97 | 100 | ||
| 98 | 101 | 1. Create a new `entrypoint.sh` file in the `hello-world-docker-action` directory. | |
| 99 | 102 | ||
@@ -102,7 +105,7 @@ Next, the script gets the current time and sets it as an output variable that ac | |||
| 102 | 105 | **entrypoint.sh** | |
| 103 | 106 | ```shell{:copy} | |
| 104 | 107 | #!/bin/sh -l | |
| 105 | - | ||
| 108 | + | ||
| 106 | 109 | echo "Hello $1" | |
| 107 | 110 | time=$(date) | |
| 108 | 111 | echo "::set-output name=time::$time" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,9 @@ versions: | |||
| 11 | 11 | free-pro-team: '*' | |
| 12 | 12 | enterprise-server: '>=2.22' | |
| 13 | 13 | type: 'tutorial' | |
| 14 | + topics: | ||
| 15 | + - 'Action development' | ||
| 16 | + - 'JavaScript' | ||
| 14 | 17 | --- | |
| 15 | 18 | ||
| 16 | 19 | {% data reusables.actions.enterprise-beta %} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,11 +11,14 @@ versions: | |||
| 11 | 11 | free-pro-team: '*' | |
| 12 | 12 | enterprise-server: '>=2.22' | |
| 13 | 13 | type: 'overview' | |
| 14 | + topics: | ||
| 15 | + - 'CI' | ||
| 16 | + - 'CD' | ||
| 14 | 17 | --- | |
| 15 | 18 | ||
| 16 | 19 | {% data reusables.actions.enterprise-beta %} | |
| 17 | 20 | {% data reusables.actions.enterprise-github-hosted-runners %} | |
| 18 | - | ||
| 21 | + | ||
| 19 | 22 | ### About continuous integration | |
| 20 | 23 | ||
| 21 | 24 | 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. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,6 +9,8 @@ versions: | |||
| 9 | 9 | free-pro-team: '*' | |
| 10 | 10 | enterprise-server: '>=2.22' | |
| 11 | 11 | type: 'overview' | |
| 12 | + topics: | ||
| 13 | + - 'Packaging' | ||
| 12 | 14 | --- | |
| 13 | 15 | ||
| 14 | 16 | {% data reusables.actions.enterprise-beta %} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,6 +9,9 @@ versions: | |||
| 9 | 9 | free-pro-team: '*' | |
| 10 | 10 | enterprise-server: '>=2.22' | |
| 11 | 11 | type: 'overview' | |
| 12 | + topics: | ||
| 13 | + - 'Containers' | ||
| 14 | + - 'Docker' | ||
| 12 | 15 | --- | |
| 13 | 16 | ||
| 14 | 17 | {% data reusables.actions.enterprise-beta %} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,6 +8,10 @@ versions: | |||
| 8 | 8 | free-pro-team: '*' | |
| 9 | 9 | enterprise-server: '>=2.22' | |
| 10 | 10 | type: 'tutorial' | |
| 11 | + topics: | ||
| 12 | + - 'CI' | ||
| 13 | + - 'Java' | ||
| 14 | + - 'Ant' | ||
| 11 | 15 | --- | |
| 12 | 16 | ||
| 13 | 17 | {% data reusables.actions.enterprise-beta %} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,6 +8,10 @@ versions: | |||
| 8 | 8 | free-pro-team: '*' | |
| 9 | 9 | enterprise-server: '>=2.22' | |
| 10 | 10 | type: 'tutorial' | |
| 11 | + topics: | ||
| 12 | + - 'CI' | ||
| 13 | + - 'Java' | ||
| 14 | + - 'Gradle' | ||
| 11 | 15 | --- | |
| 12 | 16 | ||
| 13 | 17 | {% data reusables.actions.enterprise-beta %} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,6 +8,10 @@ versions: | |||
| 8 | 8 | free-pro-team: '*' | |
| 9 | 9 | enterprise-server: '>=2.22' | |
| 10 | 10 | type: 'tutorial' | |
| 11 | + topics: | ||
| 12 | + - 'CI' | ||
| 13 | + - 'Java' | ||
| 14 | + - 'Maven' | ||
| 11 | 15 | --- | |
| 12 | 16 | ||
| 13 | 17 | {% data reusables.actions.enterprise-beta %} | |
| Back | FazBrowse Home | New Git URL |
0 commit comments