Skip to content

Commit

Permalink
Merge pull request #366 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 authored Mar 22, 2022
2 parents a2a8c6a + 0152f0f commit 849549b
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 22 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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@v3
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 @@ -73,8 +73,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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A GitHub action to close an issue.

```yml
- name: Close Issue
uses: peter-evans/close-issue@v1
uses: peter-evans/close-issue@v2
with:
issue-number: 1
comment: Auto-closing issue
Expand All @@ -28,7 +28,7 @@ jobs:
steps:
- if: startsWith(github.event.issue.title, 'ABC-') != 'true'
name: Close Issue
uses: peter-evans/close-issue@v1
uses: peter-evans/close-issue@v2
with:
comment: |
Issue title must start with 'ABC-'.
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ inputs:
comment:
description: 'A comment to make on the issue before closing'
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'
branding:
icon: 'slash'
Expand Down
16 changes: 8 additions & 8 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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "close-issue",
"version": "1.0.0",
"version": "2.0.0",
"private": true,
"description": "A GitHub action to close an issue",
"main": "lib/main.js",
Expand Down

0 comments on commit 849549b

Please sign in to comment.