Skip to content

Commit 8d9724e

Browse files
committed
Update runtime to node 16
1 parent 88ec35d commit 8d9724e

File tree

7 files changed

+41
-33
lines changed

7 files changed

+41
-33
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
labels:
8+
- "dependencies"

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v2
18-
- uses: actions/setup-node@v1
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v2
1919
with:
20-
node-version: 12.x
20+
node-version: 16.x
2121
- run: npm ci
2222
- run: npm run build
2323
- run: npm run format-check
2424
- run: npm run lint
2525
- run: npm run test
26-
- uses: actions/upload-artifact@v2
26+
- uses: actions/upload-artifact@v4
2727
with:
2828
name: dist
2929
path: dist
30-
- uses: actions/upload-artifact@v2
30+
- uses: actions/upload-artifact@v4
3131
with:
3232
name: action.yml
3333
path: action.yml
@@ -40,14 +40,14 @@ jobs:
4040
matrix:
4141
target: [built, committed]
4242
steps:
43-
- uses: actions/checkout@v2
43+
- uses: actions/checkout@v3
4444
- if: matrix.target == 'built' || github.event_name == 'pull_request'
45-
uses: actions/download-artifact@v2
45+
uses: actions/download-artifact@v3
4646
with:
4747
name: dist
4848
path: dist
4949
- if: matrix.target == 'built' || github.event_name == 'pull_request'
50-
uses: actions/download-artifact@v2
50+
uses: actions/download-artifact@v3
5151
with:
5252
name: action.yml
5353
path: .
@@ -70,8 +70,8 @@ jobs:
7070
needs: [test]
7171
runs-on: ubuntu-latest
7272
steps:
73-
- uses: actions/checkout@v2
74-
- uses: actions/download-artifact@v2
73+
- uses: actions/checkout@v3
74+
- uses: actions/download-artifact@v3
7575
with:
7676
name: dist
7777
path: dist

.github/workflows/on-repository-dispatch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
PAYLOAD_CONTEXT: ${{ toJson(github.event.client_payload) }}
1212
run: echo "$PAYLOAD_CONTEXT"
1313

14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
if: github.event.client_payload.ref != ''
1616
with:
1717
ref: ${{ github.event.client_payload.ref }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A GitHub action to create a repository dispatch event.
88

99
```yml
1010
- name: Repository Dispatch
11-
uses: peter-evans/repository-dispatch@v1
11+
uses: peter-evans/repository-dispatch@v2
1212
with:
1313
token: ${{ secrets.REPO_ACCESS_TOKEN }}
1414
event-type: my-event
@@ -55,7 +55,7 @@ jobs:
5555
myEvent:
5656
runs-on: ubuntu-latest
5757
steps:
58-
- uses: actions/checkout@v2
58+
- uses: actions/checkout@v3
5959
with:
6060
ref: ${{ github.event.client_payload.ref }}
6161
- run: echo ${{ github.event.client_payload.sha }}
@@ -78,7 +78,7 @@ jobs:
7878
runs-on: ubuntu-latest
7979
steps:
8080
- name: Repository Dispatch
81-
uses: peter-evans/repository-dispatch@v1
81+
uses: peter-evans/repository-dispatch@v2
8282
with:
8383
token: ${{ secrets.REPO_ACCESS_TOKEN }}
8484
repository: ${{ matrix.repo }}

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ inputs:
1414
description: 'JSON payload with extra information about the webhook event that your action or worklow may use.'
1515
default: '{}'
1616
runs:
17-
using: 'node12'
17+
using: 'node16'
1818
main: 'dist/index.js'
1919
branding:
2020
icon: 'target'

package-lock.json

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "repository-dispatch",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"private": true,
55
"description": "Create a repository dispatch event",
66
"main": "lib/main.js",

0 commit comments

Comments
 (0)