Skip to content

Commit

Permalink
Update runtime to node 20 (#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-evans committed Jan 25, 2024
1 parent 51e8f84 commit 24452a7
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x
cache: npm
- run: npm ci
- run: npm run build
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/update-major-version.yml
@@ -0,0 +1,31 @@
name: Update Major Version
run-name: Update ${{ github.event.inputs.main_version }} to ${{ github.event.inputs.target }}

on:
workflow_dispatch:
inputs:
target:
description: The target tag or reference
required: true
main_version:
type: choice
description: The major version tag to update
options:
- v5

jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
fetch-depth: 0
- name: Git config
run: |
git config user.name actions-bot
git config user.email actions-bot@users.noreply.github.com
- name: Tag new target
run: git tag -f ${{ github.event.inputs.main_version }} ${{ github.event.inputs.target }}
- name: Push new tag
run: git push origin ${{ github.event.inputs.main_version }} --force
4 changes: 2 additions & 2 deletions README.md
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@v4
uses: peter-evans/create-issue-from-file@v5
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@v4
uses: peter-evans/create-issue-from-file@v5
with:
title: An example issue
content-filepath: ./example-content/output.md
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -22,7 +22,7 @@ outputs:
issue-number:
description: 'The number of the created issue'
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'alert-circle'
Expand Down
4 changes: 2 additions & 2 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": "create-issue-from-file",
"version": "4.0.0",
"version": "5.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 24452a7

Please sign in to comment.