mirror of
https://github.com/peter-evans/repository-dispatch.git
synced 2026-07-22 02:27:41 +00:00
Update default branch
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -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]
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user