Skip to content

Commit ccad190

Browse files
authored
Set main as the default branch (#527)
* set main as the default branch * revert change to tool-cache default branch * use versions where applicable
1 parent cb18a3d commit ccad190

25 files changed

+42
-42
lines changed

.github/workflows/artifact-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: artifact-unit-tests
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66
paths-ignore:
77
- '**.md'
88
pull_request:

.github/workflows/audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: toolkit-audit
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66
paths-ignore:
77
- '**.md'
88
pull_request:

.github/workflows/cache-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: cache-unit-tests
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66
paths-ignore:
77
- '**.md'
88
pull_request:

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: toolkit-unit-tests
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66
paths-ignore:
77
- '**.md'
88
pull_request:

.github/workflows/update-github.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
script: |
3838
github.pulls.create(
3939
{
40-
base: "master",
40+
base: "main",
4141
owner: "${{github.repository_owner}}",
4242
repo: "toolkit",
4343
title: "Update Octokit dependencies",

docs/action-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ jobs:
3232
os: [ubuntu-16.04, windows-2019]
3333
runs-on: ${{matrix.os}}
3434
actions:
35-
- uses: actions/setup-node@master
35+
- uses: actions/setup-node@v1
3636
with:
3737
version: ${{matrix.node}}
3838
- run: |
3939
npm install
4040
- run: |
4141
npm test
42-
- uses: actions/custom-action@master
42+
- uses: actions/custom-action@v1
4343
```
4444
4545
JavaScript actions work on any environment that host action runtime is supported on which is currently node 12. However, a host action that runs a toolset expects the environment that it's running on to have that toolset in its PATH or using a setup-* action to acquire it on demand.

docs/action-versioning.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Binding to a major version is the latest of that major version ( e.g. `v1` == "1
1717

1818
Major versions should guarantee compatibility. A major version can add net new capabilities but should not break existing input compatibility or break existing workflows.
1919

20-
Major version binding allows you to take advantage of bug fixes and critical functionality and security fixes. The `master` branch has the latest code and is unstable to bind to since changes get committed to master and released to the market place by creating a tag. In addition, a new major version carrying breaking changes will get implemented in master after branching off the previous major version.
20+
Major version binding allows you to take advantage of bug fixes and critical functionality and security fixes. The `main` branch has the latest code and is unstable to bind to since changes get committed to main and released to the market place by creating a tag. In addition, a new major version carrying breaking changes will get implemented in main after branching off the previous major version.
2121

22-
> Warning: do not reference `master` since that is the latest code and can be carrying breaking changes of the next major version.
22+
> Warning: do not reference `main` since that is the latest code and can be carrying breaking changes of the next major version.
2323

2424
```yaml
2525
steps:
26-
- uses: actions/javascript-action@master # do not do this
26+
- uses: actions/javascript-action@main # do not do this
2727
```
2828

2929
Binding to the immutable full sha1 may offer more reliability. However, note that the hosted images toolsets (e.g. ubuntu-latest) move forward and if there is a tool breaking issue, actions may react with a patch to a major version to compensate so binding to a specific SHA may prevent you from getting fixes.

docs/commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# :: Commands
22

3-
The [core toolkit package](https://github.com/actions/toolkit/tree/master/packages/core) offers a number of convenience functions for
3+
The [core toolkit package](https://github.com/actions/toolkit/tree/main/packages/core) offers a number of convenience functions for
44
setting results, logging, registering secrets and exporting variables across actions. Sometimes, however, its useful to be able to do
55
these things in a script or other tool.
66

docs/container-action.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ e.g. To use https://github.com/actions/setup-node, users will author:
1818

1919
```yaml
2020
steps:
21-
using: actions/setup-node@master
21+
using: actions/setup-node@v1
2222
```
2323
2424
# Define Metadata

docs/problem-matchers.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ Registering two problem-matchers with the same owner will result in only the pro
111111
## Examples
112112

113113
Some of the starter actions are already using problem matchers, for example:
114-
- [setup-node](https://github.com/actions/setup-node/tree/master/.github)
115-
- [setup-python](https://github.com/actions/setup-python/tree/master/.github)
116-
- [setup-go](https://github.com/actions/setup-go/tree/master/.github)
117-
- [setup-dotnet](https://github.com/actions/setup-dotnet/tree/master/.github)
114+
- [setup-node](https://github.com/actions/setup-node/tree/main/.github)
115+
- [setup-python](https://github.com/actions/setup-python/tree/main/.github)
116+
- [setup-go](https://github.com/actions/setup-go/tree/main/.github)
117+
- [setup-dotnet](https://github.com/actions/setup-dotnet/tree/main/.github)
118118

119119
## Troubleshooting
120120

0 commit comments

Comments
 (0)