mirror of
https://github.com/actions/github-script.git
synced 2025-12-08 08:06:23 +00:00
Replace default branch name with main
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -1,6 +1,6 @@
|
|||||||
on:
|
on:
|
||||||
push: {branches: master}
|
push: {branches: main}
|
||||||
pull_request: {branches: master}
|
pull_request: {branches: main}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
|
|||||||
4
.github/workflows/integration.yml
vendored
4
.github/workflows/integration.yml
vendored
@@ -1,12 +1,12 @@
|
|||||||
on:
|
on:
|
||||||
push: {branches: master}
|
push: {branches: main}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
integration:
|
integration:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- id: output-set
|
- id: output-set
|
||||||
uses: actions/github-script@master
|
uses: actions/github-script@main
|
||||||
with:
|
with:
|
||||||
script: return core.getInput('input-value')
|
script: return core.getInput('input-value')
|
||||||
result-encoding: string
|
result-encoding: string
|
||||||
|
|||||||
2
.github/workflows/pull-request-test.yml
vendored
2
.github/workflows/pull-request-test.yml
vendored
@@ -1,6 +1,6 @@
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: master
|
branches: main
|
||||||
types: [opened, synchronize]
|
types: [opened, synchronize]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ arguments will be provided:
|
|||||||
- `github` A pre-authenticated
|
- `github` A pre-authenticated
|
||||||
[octokit/rest.js](https://github.com/octokit/rest.js) client
|
[octokit/rest.js](https://github.com/octokit/rest.js) client
|
||||||
- `context` An object containing the [context of the workflow
|
- `context` An object containing the [context of the workflow
|
||||||
run](https://github.com/actions/toolkit/blob/master/packages/github/src/context.ts)
|
run](https://github.com/actions/toolkit/blob/main/packages/github/src/context.ts)
|
||||||
- `core` A reference to the [@actions/core](https://github.com/actions/toolkit/tree/master/packages/core) package
|
- `core` A reference to the [@actions/core](https://github.com/actions/toolkit/tree/main/packages/core) package
|
||||||
- `io` A reference to the [@actions/io](https://github.com/actions/toolkit/tree/master/packages/io) package
|
- `io` A reference to the [@actions/io](https://github.com/actions/toolkit/tree/main/packages/io) package
|
||||||
|
|
||||||
Since the `script` is just a function body, these values will already be
|
Since the `script` is just a function body, these values will already be
|
||||||
defined, so you don't have to (see examples below).
|
defined, so you don't have to (see examples below).
|
||||||
|
|||||||
@@ -25,4 +25,4 @@ Releases are done manually, for now:
|
|||||||
1. Ensure that the build is up to date with `npm run build`.
|
1. Ensure that the build is up to date with `npm run build`.
|
||||||
1. Bump the [package.json](/package.json#L3) and [package-lock.json](/package-lock.json#L3) version numbers and commit them.
|
1. Bump the [package.json](/package.json#L3) and [package-lock.json](/package-lock.json#L3) version numbers and commit them.
|
||||||
1. Update documentation (including updated version numbers).
|
1. Update documentation (including updated version numbers).
|
||||||
1. Tag master with the new version number and create a GitHub release.
|
1. Tag main with the new version number and create a GitHub release.
|
||||||
|
|||||||
Reference in New Issue
Block a user