22 Commits

Author SHA1 Message Date
Peter Evans
95531d6358 Merge pull request #45 from peter-evans/update-distribution
Update distribution
2020-09-22 08:56:42 +09:00
peter-evans
b4caad9acd Update distribution 2020-09-21 23:56:30 +00:00
Peter Evans
543acfac4e Merge pull request #37 from peter-evans/update-dependencies
Update dependencies
2020-09-22 08:55:27 +09:00
actions-bot
4e1995c760 Update dependencies 2020-09-17 01:13:09 +00:00
Peter Evans
7d5ca7bf80 Merge pull request #43 from peter-evans/update-distribution
Update distribution
2020-09-13 15:09:49 +09:00
peter-evans
618fe4e18f Update distribution 2020-09-13 06:08:13 +00:00
Peter Evans
8f8aeefe6e Merge pull request #42 from peter-evans/dependabot/npm_and_yarn/node-fetch-2.6.1
Bump node-fetch from 2.6.0 to 2.6.1
2020-09-13 15:06:51 +09:00
dependabot[bot]
c5318edea4 Bump node-fetch from 2.6.0 to 2.6.1
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-12 10:25:06 +00:00
Peter Evans
438514a476 Merge pull request #41 from peter-evans/update-ncc
Update ncc
2020-08-22 15:29:58 +09:00
Peter Evans
216dea92e3 Update ncc 2020-08-22 15:28:17 +09:00
Peter Evans
c0fe68ba01 Update readme 2020-08-04 15:54:46 +09:00
Peter Evans
21c5610af0 Update slash-command-dispatch to v2 2020-07-25 13:45:08 +09:00
Peter Evans
754562405e Update create-pull-request action to v3 2020-07-23 16:05:30 +09:00
Peter Evans
a12578c2e0 Merge pull request #36 from peter-evans/dependabot/npm_and_yarn/lodash-4.17.19
Bump lodash from 4.17.15 to 4.17.19
2020-07-20 17:43:59 +09:00
dependabot[bot]
0e075ee1a0 Bump lodash from 4.17.15 to 4.17.19
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-20 08:41:32 +00:00
Peter Evans
3b28b4b04f Merge pull request #35 from peter-evans/update-distribution
Update distribution
2020-07-19 18:06:42 +09:00
peter-evans
9e58632f8a Update distribution 2020-07-19 09:06:12 +00:00
Peter Evans
163f36102f Merge pull request #30 from peter-evans/update-dependencies
Update dependencies
2020-07-19 18:04:45 +09:00
actions-bot
4532a8fb51 Update dependencies 2020-07-16 01:05:50 +00:00
Peter Evans
f540f114fd Update readme 2020-06-25 09:13:39 +09:00
Peter Evans
1c51dc3383 Merge pull request #31 from cbetta/patch-1
Clarify that PAT owner needs to have repo access
2020-06-25 09:12:02 +09:00
Cristiano Betta
8e9f439e9f Clarify that PAT owner needs to have repo access
Ran into an issue where I was using a user that did not have explicit access to the repo that I was trying to trigger an event for. I'm not sure if the user needs write access to the repo, but it seems logical to me that someone with `read` only access can not trigger GH actions.
2020-06-24 14:57:02 +01:00
7 changed files with 9495 additions and 10698 deletions

View File

@@ -76,11 +76,9 @@ jobs:
name: dist
path: dist
- name: Create Pull Request
uses: peter-evans/create-pull-request@v2
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update distribution
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: Update distribution
body: |
- Updates the distribution for changes on `master`

View File

@@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Slash Command Dispatch
uses: peter-evans/slash-command-dispatch@v1
uses: peter-evans/slash-command-dispatch@v2
with:
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
config: >

View File

@@ -15,7 +15,7 @@ jobs:
npx -p npm-check-updates ncu -u
npm install
- name: Create Pull Request
uses: peter-evans/create-pull-request@v2
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
commit-message: Update dependencies

View File

@@ -18,7 +18,7 @@ A GitHub action to create a repository dispatch event.
| Name | Description | Default |
| --- | --- | --- |
| `token` | (**required**) A `repo` scoped GitHub [Personal Access Token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line). See [token](#token) for further details. | |
| `token` | (**required**) A `repo` scoped GitHub [Personal Access Token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token). See [token](#token) for further details. | |
| `repository` | The full name of the repository to send the dispatch. | `github.repository` (current repository) |
| `event-type` | (**required**) A custom webhook event name. | |
| `client-payload` | JSON payload with extra information about the webhook event that your action or workflow may use. | `{}` |
@@ -26,7 +26,7 @@ A GitHub action to create a repository dispatch event.
#### `token`
This action creates [`repository_dispatch`](https://developer.github.com/v3/repos/#create-a-repository-dispatch-event) events.
The default `GITHUB_TOKEN` does not have scopes to do this so a `repo` scoped [PAT](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line) is required.
The default `GITHUB_TOKEN` does not have scopes to do this so a `repo` scoped [PAT](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) created on a user with `write` access to the target repository is required.
If you will be dispatching to a public repository then you can use the more limited `public_repo` scope.
## Example
@@ -63,7 +63,7 @@ jobs:
### Dispatch to multiple repositories
You can dispatch to multiple repositories by using a [matrix strategy](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstrategy). In the following example, after the `build` job succeeds, an event is dispatched to three different repositories.
You can dispatch to multiple repositories by using a [matrix strategy](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix). In the following example, after the `build` job succeeds, an event is dispatched to three different repositories.
```yml
jobs:

14986
dist/index.js vendored

File diff suppressed because it is too large Load Diff

5165
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -27,22 +27,22 @@
},
"homepage": "https://github.com/peter-evans/repository-dispatch#readme",
"dependencies": {
"@actions/core": "1.2.4",
"@actions/github": "3.0.0"
"@actions/core": "1.2.5",
"@actions/github": "4.0.0"
},
"devDependencies": {
"@types/jest": "25.2.3",
"@types/node": "14.0.10",
"@typescript-eslint/parser": "3.1.0",
"@zeit/ncc": "0.22.3",
"eslint": "7.1.0",
"eslint-plugin-github": "4.0.1",
"eslint-plugin-jest": "23.13.2",
"jest": "26.0.1",
"jest-circus": "26.0.1",
"@types/jest": "26.0.14",
"@types/node": "14.10.3",
"@typescript-eslint/parser": "4.1.1",
"@vercel/ncc": "0.24.1",
"eslint": "7.9.0",
"eslint-plugin-github": "4.1.1",
"eslint-plugin-jest": "24.0.1",
"jest": "26.4.2",
"jest-circus": "26.4.2",
"js-yaml": "3.14.0",
"prettier": "2.0.5",
"ts-jest": "26.1.0",
"typescript": "3.9.3"
"prettier": "2.1.2",
"ts-jest": "26.3.0",
"typescript": "4.0.2"
}
}