Skip to content

Commit

Permalink
Merge pull request #569 from peter-evans/v4
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 23531c9 + 54e9f89 commit 99b87c3
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 40 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"
23 changes: 10 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +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
- uses: actions/setup-python@v2
with:
python-version: '3.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 @@ -43,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 Down Expand Up @@ -88,9 +85,9 @@ jobs:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: rm -rf dist
- uses: actions/download-artifact@v2
- 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 @@ -14,7 +14,7 @@ If the file does not exist the action exits silently.

```yml
- name: Create Issue From File
uses: peter-evans/create-issue-from-file@v3
uses: peter-evans/create-issue-from-file@v4
with:
title: An example issue
content-filepath: ./example-content/output.md
Expand Down Expand Up @@ -46,7 +46,7 @@ To create a project card for the issue, pass the `issue-number` step output to [
```yml
- name: Create Issue From File
id: ciff
uses: peter-evans/create-issue-from-file@v2
uses: peter-evans/create-issue-from-file@v4
with:
title: An example issue
content-filepath: ./example-content/output.md
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ outputs:
issue-number:
description: 'The number of the created issue'
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'
branding:
icon: 'alert-circle'
Expand Down
46 changes: 23 additions & 23 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": "create-issue-from-file",
"version": "3.0.0",
"version": "4.0.0",
"private": true,
"description": "An action to create an issue using content from a file",
"main": "lib/main.js",
Expand Down

0 comments on commit 99b87c3

Please sign in to comment.