Skip to content

Commit

Permalink
feat: upgrade for node20 (#35)
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun authored Feb 19, 2024
1 parent ba4d1c4 commit cdb57ab
Show file tree
Hide file tree
Showing 8 changed files with 110 additions and 106 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint Code Base
Expand All @@ -23,4 +23,3 @@ jobs:
DEFAULT_BRANCH: main
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_NATURAL_LANGUAGE: false

8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'
- run: |
echo "todo"
npm install
Expand All @@ -28,7 +28,7 @@ jobs:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: test
id: new-issue
uses: ./
Expand Down
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ options for `with:`
Limited testing has been done, and only on `ubuntu-latest`

Basic Usage:

```yml
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: create an issue
uses: dacbd/create-issue-action@main
with:
Expand All @@ -39,9 +40,10 @@ steps:
```
The reason for being usage:
```yml
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Something that might fail
run: exit 1
- name: Create Issue on Failed workflow
Expand All @@ -61,12 +63,14 @@ steps:
```
## Other examples
Using outputs:
```yml
...
steps:
- uses: actions/checkout@v3
- uses: dacbd/create-issue-action@v1
- uses: actions/checkout@v4
- uses: dacbd/create-issue-action@main
id: new-issue
with:
token: ${{ github.token }}
Expand All @@ -79,6 +83,7 @@ steps:
```
Transpose issues to a private repo:
```yml
name: transpose issue
issues:
Expand All @@ -89,7 +94,7 @@ job:
if: contains(github.event.issue.labels.*.name, 'backend')
steps:
- name: Copy Issue
uses: dacbd/create-issue-action@v1
uses: dacbd/create-issue-action@main
with:
token: ${{ secrets.PAT }}
org: octo-org
Expand All @@ -104,4 +109,4 @@ job:
## Issues & debugging
If you encounter issues with my action feel free to create an issue or a PR, happy to take improvements or requests.
More verbose logging can be enabled via GitHub Actions feature: [`ACTIONS_STEP_DEBUG`](https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging)
More verbose logging can be enabled via GitHub Actions feature: [`ACTIONS_STEP_DEBUG`](https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging)
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ branding:
icon: alert-octagon
color: gray-dark
runs:
using: node16
using: node20
main: ./dist/index.js
inputs:
token:
Expand Down
Loading

0 comments on commit cdb57ab

Please sign in to comment.