Update default branch

This commit is contained in:
Peter Evans
2021-05-12 17:29:28 +09:00
parent 01c34330a7
commit f7b4de6b26
2 changed files with 5 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
name: CI name: CI
on: on:
push: push:
branches: [master] branches: [main]
paths-ignore: paths-ignore:
- 'README.md' - 'README.md'
- 'docs/**' - 'docs/**'
pull_request: pull_request:
branches: [master] branches: [main]
paths-ignore: paths-ignore:
- 'README.md' - 'README.md'
- 'docs/**' - 'docs/**'
@@ -66,7 +66,7 @@ jobs:
event-type: tests event-type: tests
package: package:
if: github.event_name == 'push' && github.ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [test] needs: [test]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -81,7 +81,7 @@ jobs:
commit-message: Update distribution commit-message: Update distribution
title: Update distribution title: Update distribution
body: | body: |
- Updates the distribution for changes on `master` - Updates the distribution for changes on `main`
Auto-generated by [create-pull-request][1] Auto-generated by [create-pull-request][1]

View File

@@ -44,7 +44,7 @@ Here is an example setting all of the input parameters.
``` ```
Here is an example `on: repository_dispatch` workflow to receive the event. Here is an example `on: repository_dispatch` workflow to receive the event.
Note that repository dispatch events will only trigger a workflow run if the workflow is committed to the default branch (usually `master`). Note that repository dispatch events will only trigger a workflow run if the workflow is committed to the default branch.
```yml ```yml
name: Repository Dispatch name: Repository Dispatch