Skip to content

Commit

Permalink
Merge pull request #106 from peter-evans/v2
Browse files Browse the repository at this point in the history
Update runtime to node 16
  • Loading branch information
peter-evans committed Mar 22, 2022
2 parents 88ec35d + 646aa80 commit 11ba7d3
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 33 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
labels:
- "dependencies"
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Expand Up @@ -14,20 +14,20 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: 16.x
- run: npm ci
- run: npm run build
- run: npm run format-check
- run: npm run lint
- run: npm run test
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: dist
path: dist
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: action.yml
path: action.yml
Expand All @@ -40,14 +40,14 @@ jobs:
matrix:
target: [built, committed]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- if: matrix.target == 'built' || github.event_name == 'pull_request'
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: dist
path: dist
- if: matrix.target == 'built' || github.event_name == 'pull_request'
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: action.yml
path: .
Expand All @@ -70,8 +70,8 @@ jobs:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: dist
path: dist
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-repository-dispatch.yml
Expand Up @@ -11,7 +11,7 @@ jobs:
PAYLOAD_CONTEXT: ${{ toJson(github.event.client_payload) }}
run: echo "$PAYLOAD_CONTEXT"

- uses: actions/checkout@v2
- uses: actions/checkout@v3
if: github.event.client_payload.ref != ''
with:
ref: ${{ github.event.client_payload.ref }}
Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -8,7 +8,7 @@ A GitHub action to create a repository dispatch event.

```yml
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
event-type: my-event
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
myEvent:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ github.event.client_payload.ref }}
- run: echo ${{ github.event.client_payload.sha }}
Expand All @@ -78,7 +78,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: ${{ matrix.repo }}
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -14,7 +14,7 @@ inputs:
description: 'JSON payload with extra information about the webhook event that your action or worklow may use.'
default: '{}'
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'
branding:
icon: 'target'
Expand Down
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "repository-dispatch",
"version": "1.0.0",
"version": "2.0.0",
"private": true,
"description": "Create a repository dispatch event",
"main": "lib/main.js",
Expand Down

0 comments on commit 11ba7d3

Please sign in to comment.