Skip to content

Commit b476789

Browse files
authored
Merge pull request #18722 from github/repo-sync
repo sync
2 parents c7de515 + 5454f05 commit b476789

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

content/actions/guides/building-and-testing-nodejs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ We recommend that you have a basic understanding of Node.js, YAML, workflow conf
3737

3838
{% data variables.product.prodname_dotcom %} provides a Node.js workflow template that will work for most Node.js projects. This guide includes npm and Yarn examples that you can use to customize the template. For more information, see the [Node.js workflow template](https://github.com/actions/starter-workflows/blob/main/ci/node.js.yml).
3939

40-
To get started quickly, add the template to the `.github/workflows` directory of your repository.
40+
To get started quickly, add the template to the `.github/workflows` directory of your repository. The workflow shown below assumes that the default branch for your repository is `main`.
4141

4242
{% raw %}
4343
```yaml{:copy}
4444
name: Node.js CI
4545
4646
on:
4747
push:
48-
branches: [ $default-branch ]
48+
branches: [ main ]
4949
pull_request:
50-
branches: [ $default-branch ]
50+
branches: [ main ]
5151
5252
jobs:
5353
build:

content/actions/guides/building-and-testing-ruby.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ We recommend that you have a basic understanding of Ruby, YAML, workflow configu
3131

3232
{% data variables.product.prodname_dotcom %} provides a Ruby workflow template that will work for most Ruby projects. For more information, see the [Ruby workflow template](https://github.com/actions/starter-workflows/blob/master/ci/ruby.yml).
3333

34-
To get started quickly, add the template to the `.github/workflows` directory of your repository.
34+
To get started quickly, add the template to the `.github/workflows` directory of your repository. The workflow shown below assumes that the default branch for your repository is `main`.
3535

3636
{% raw %}
3737
```yaml
3838
name: Ruby
3939

4040
on:
4141
push:
42-
branches: [ $default-branch ]
42+
branches: [ main ]
4343
pull_request:
44-
branches: [ $default-branch ]
44+
branches: [ main ]
4545

4646
jobs:
4747
test:
@@ -105,9 +105,9 @@ name: Ruby CI
105105
106106
on:
107107
push:
108-
branches: [ $default-branch ]
108+
branches: [ main ]
109109
pull_request:
110-
branches: [ $default-branch ]
110+
branches: [ main ]
111111
112112
jobs:
113113
test:
@@ -211,9 +211,9 @@ name: Matrix Testing
211211
212212
on:
213213
push:
214-
branches: [ $default-branch ]
214+
branches: [ main ]
215215
pull_request:
216-
branches: [ $default-branch ]
216+
branches: [ main ]
217217
218218
jobs:
219219
test:
@@ -272,11 +272,11 @@ name: Ruby Gem
272272
on:
273273
# Manually publish
274274
workflow_dispatch:
275-
# Alternatively, publish whenever changes are merged to the default branch.
275+
# Alternatively, publish whenever changes are merged to the `main` branch.
276276
push:
277-
branches: [ $default-branch ]
277+
branches: [ main ]
278278
pull_request:
279-
branches: [ $default-branch ]
279+
branches: [ main ]
280280

281281
jobs:
282282
build:

0 commit comments

Comments
 (0)