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
on:
push:
branches: [master]
branches: [main]
paths-ignore:
- 'README.md'
- 'docs/**'
pull_request:
branches: [master]
branches: [main]
paths-ignore:
- 'README.md'
- 'docs/**'
@@ -66,7 +66,7 @@ jobs:
event-type: tests
package:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [test]
runs-on: ubuntu-latest
steps:
@@ -81,7 +81,7 @@ jobs:
commit-message: Update distribution
title: Update distribution
body: |
- Updates the distribution for changes on `master`
- Updates the distribution for changes on `main`
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.
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
name: Repository Dispatch