Skip to content

Commit 355c385

Browse files
authored
Merge pull request #12081 from github/repo-sync
repo sync
2 parents 58a9ae8 + dc05ef6 commit 355c385

13 files changed

Lines changed: 66 additions & 66 deletions

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,21 @@ Before you begin, you'll need to download Node.js and create a public {% data va
4848

4949
1. From your terminal, change directories into your new repository.
5050

51-
```shell
51+
```shell{:copy}
5252
cd hello-world-javascript-action
5353
```
5454

5555
1. From your terminal, initialize the directory with npm to generate a `package.json` file.
5656

57-
```shell
57+
```shell{:copy}
5858
npm init -y
5959
```
6060

6161
## Creating an action metadata file
6262

6363
Create a new file named `action.yml` in the `hello-world-javascript-action` directory with the following example code. For more information, see "[Metadata syntax for {% data variables.product.prodname_actions %}](/actions/creating-actions/metadata-syntax-for-github-actions)."
6464

65-
```yaml
65+
```yaml{:copy}
6666
name: 'Hello World'
6767
description: 'Greet someone and record the time'
6868
inputs:
@@ -92,7 +92,7 @@ The toolkit offers more than the `core` and `github` packages. For more informat
9292

9393
At your terminal, install the actions toolkit `core` and `github` packages.
9494

95-
```shell
95+
```shell{:copy}
9696
npm install @actions/core
9797
npm install @actions/github
9898
```
@@ -108,7 +108,7 @@ GitHub Actions provide context information about the webhook event, Git refs, wo
108108
Add a new file called `index.js`, with the following code.
109109

110110
{% raw %}
111-
```javascript
111+
```javascript{:copy}
112112
const core = require('@actions/core');
113113
const github = require('@actions/github');
114114
@@ -174,7 +174,7 @@ From your terminal, commit your `action.yml`, `index.js`, `node_modules`, `packa
174174

175175
It's best practice to also add a version tag for releases of your action. For more information on versioning your action, see "[About actions](/actions/automating-your-workflow-with-github-actions/about-actions#using-release-management-for-actions)."
176176

177-
```shell
177+
```shell{:copy}
178178
git add action.yml index.js node_modules/* package.json package-lock.json README.md
179179
git commit -m "My first action is ready"
180180
git tag -a -m "My first action release" v1.1
@@ -219,7 +219,7 @@ This example demonstrates how your new public action can be run from within an e
219219
Copy the following YAML into a new file at `.github/workflows/main.yml`, and update the `uses: octocat/hello-world-javascript-action@v1.1` line with your username and the name of the public repository you created above. You can also replace the `who-to-greet` input with your name.
220220

221221
{% raw %}
222-
```yaml
222+
```yaml{:copy}
223223
on: [push]
224224
225225
jobs:
@@ -246,7 +246,7 @@ Copy the workflow code into a `.github/workflows/main.yml` file in your action's
246246

247247
{% raw %}
248248
**.github/workflows/main.yml**
249-
```yaml
249+
```yaml{:copy}
250250
on: [push]
251251
252252
jobs:

lib/rest/static/decorated/api.github.com.json

Lines changed: 10 additions & 10 deletions
Large diffs are not rendered by default.

lib/rest/static/decorated/ghes-3.0.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36177,14 +36177,14 @@
3617736177
},
3617836178
"contexts": {
3617936179
"type": "array of strings",
36180-
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch</p>",
36180+
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use <code>checks</code> instead of <code>contexts</code> for more fine-grained control.</p>",
3618136181
"items": {
3618236182
"type": "string"
3618336183
},
3618436184
"name": "contexts",
3618536185
"in": "body",
3618636186
"rawType": "array",
36187-
"rawDescription": "The list of status checks to require in order to merge into this branch",
36187+
"rawDescription": "The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.",
3618836188
"childParamsGroups": []
3618936189
}
3619036190
},
@@ -36213,14 +36213,14 @@
3621336213
},
3621436214
{
3621536215
"type": "array of strings",
36216-
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch</p>",
36216+
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use <code>checks</code> instead of <code>contexts</code> for more fine-grained control.</p>",
3621736217
"items": {
3621836218
"type": "string"
3621936219
},
3622036220
"name": "contexts",
3622136221
"in": "body",
3622236222
"rawType": "array",
36223-
"rawDescription": "The list of status checks to require in order to merge into this branch",
36223+
"rawDescription": "The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.",
3622436224
"childParamsGroups": []
3622536225
}
3622636226
]
@@ -36718,14 +36718,14 @@
3671836718
},
3671936719
"contexts": {
3672036720
"type": "array of strings",
36721-
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch</p>",
36721+
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use <code>checks</code> instead of <code>contexts</code> for more fine-grained control.</p>",
3672236722
"items": {
3672336723
"type": "string"
3672436724
},
3672536725
"name": "contexts",
3672636726
"in": "body",
3672736727
"rawType": "array",
36728-
"rawDescription": "The list of status checks to require in order to merge into this branch",
36728+
"rawDescription": "The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.",
3672936729
"childParamsGroups": []
3673036730
}
3673136731
},
@@ -36754,14 +36754,14 @@
3675436754
},
3675536755
{
3675636756
"type": "array of strings",
36757-
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch</p>",
36757+
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use <code>checks</code> instead of <code>contexts</code> for more fine-grained control.</p>",
3675836758
"items": {
3675936759
"type": "string"
3676036760
},
3676136761
"name": "contexts",
3676236762
"in": "body",
3676336763
"rawType": "array",
36764-
"rawDescription": "The list of status checks to require in order to merge into this branch",
36764+
"rawDescription": "The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.",
3676536765
"childParamsGroups": []
3676636766
}
3676736767
]

lib/rest/static/decorated/ghes-3.1.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36299,14 +36299,14 @@
3629936299
},
3630036300
"contexts": {
3630136301
"type": "array of strings",
36302-
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch</p>",
36302+
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use <code>checks</code> instead of <code>contexts</code> for more fine-grained control.</p>",
3630336303
"items": {
3630436304
"type": "string"
3630536305
},
3630636306
"name": "contexts",
3630736307
"in": "body",
3630836308
"rawType": "array",
36309-
"rawDescription": "The list of status checks to require in order to merge into this branch",
36309+
"rawDescription": "The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.",
3631036310
"childParamsGroups": []
3631136311
}
3631236312
},
@@ -36335,14 +36335,14 @@
3633536335
},
3633636336
{
3633736337
"type": "array of strings",
36338-
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch</p>",
36338+
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use <code>checks</code> instead of <code>contexts</code> for more fine-grained control.</p>",
3633936339
"items": {
3634036340
"type": "string"
3634136341
},
3634236342
"name": "contexts",
3634336343
"in": "body",
3634436344
"rawType": "array",
36345-
"rawDescription": "The list of status checks to require in order to merge into this branch",
36345+
"rawDescription": "The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.",
3634636346
"childParamsGroups": []
3634736347
}
3634836348
]
@@ -36840,14 +36840,14 @@
3684036840
},
3684136841
"contexts": {
3684236842
"type": "array of strings",
36843-
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch</p>",
36843+
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use <code>checks</code> instead of <code>contexts</code> for more fine-grained control.</p>",
3684436844
"items": {
3684536845
"type": "string"
3684636846
},
3684736847
"name": "contexts",
3684836848
"in": "body",
3684936849
"rawType": "array",
36850-
"rawDescription": "The list of status checks to require in order to merge into this branch",
36850+
"rawDescription": "The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.",
3685136851
"childParamsGroups": []
3685236852
}
3685336853
},
@@ -36876,14 +36876,14 @@
3687636876
},
3687736877
{
3687836878
"type": "array of strings",
36879-
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch</p>",
36879+
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use <code>checks</code> instead of <code>contexts</code> for more fine-grained control.</p>",
3688036880
"items": {
3688136881
"type": "string"
3688236882
},
3688336883
"name": "contexts",
3688436884
"in": "body",
3688536885
"rawType": "array",
36886-
"rawDescription": "The list of status checks to require in order to merge into this branch",
36886+
"rawDescription": "The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.",
3688736887
"childParamsGroups": []
3688836888
}
3688936889
]

lib/rest/static/decorated/ghes-3.2.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37545,14 +37545,14 @@
3754537545
},
3754637546
"contexts": {
3754737547
"type": "array of strings",
37548-
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch</p>",
37548+
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use <code>checks</code> instead of <code>contexts</code> for more fine-grained control.</p>",
3754937549
"items": {
3755037550
"type": "string"
3755137551
},
3755237552
"name": "contexts",
3755337553
"in": "body",
3755437554
"rawType": "array",
37555-
"rawDescription": "The list of status checks to require in order to merge into this branch",
37555+
"rawDescription": "The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.",
3755637556
"childParamsGroups": []
3755737557
}
3755837558
},
@@ -37581,14 +37581,14 @@
3758137581
},
3758237582
{
3758337583
"type": "array of strings",
37584-
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch</p>",
37584+
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use <code>checks</code> instead of <code>contexts</code> for more fine-grained control.</p>",
3758537585
"items": {
3758637586
"type": "string"
3758737587
},
3758837588
"name": "contexts",
3758937589
"in": "body",
3759037590
"rawType": "array",
37591-
"rawDescription": "The list of status checks to require in order to merge into this branch",
37591+
"rawDescription": "The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.",
3759237592
"childParamsGroups": []
3759337593
}
3759437594
]
@@ -38086,14 +38086,14 @@
3808638086
},
3808738087
"contexts": {
3808838088
"type": "array of strings",
38089-
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch</p>",
38089+
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use <code>checks</code> instead of <code>contexts</code> for more fine-grained control.</p>",
3809038090
"items": {
3809138091
"type": "string"
3809238092
},
3809338093
"name": "contexts",
3809438094
"in": "body",
3809538095
"rawType": "array",
38096-
"rawDescription": "The list of status checks to require in order to merge into this branch",
38096+
"rawDescription": "The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.",
3809738097
"childParamsGroups": []
3809838098
}
3809938099
},
@@ -38122,14 +38122,14 @@
3812238122
},
3812338123
{
3812438124
"type": "array of strings",
38125-
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch</p>",
38125+
"description": "<p><strong>Required</strong>. The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use <code>checks</code> instead of <code>contexts</code> for more fine-grained control.</p>",
3812638126
"items": {
3812738127
"type": "string"
3812838128
},
3812938129
"name": "contexts",
3813038130
"in": "body",
3813138131
"rawType": "array",
38132-
"rawDescription": "The list of status checks to require in order to merge into this branch",
38132+
"rawDescription": "The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.",
3813338133
"childParamsGroups": []
3813438134
}
3813538135
]

0 commit comments

Comments
 (0)