Skip to content

Commit c169bfd

Browse files
authored
feat: node 20 (#2)
* feat: node 20 * fix: rename * fix: invalid url fallback * fix: create new build * fix: dist build v2 * fix: add content-type * fix: add extra space
1 parent 6ec87d0 commit c169bfd

File tree

15 files changed

+1832
-8597
lines changed

15 files changed

+1832
-8597
lines changed

.eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"plugins": ["@typescript-eslint", "prettier"],
3-
"extends": [],
43
"parser": "@typescript-eslint/parser",
54
"parserOptions": {
65
"ecmaVersion": 9,

.github/workflows/pull-request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Pull Request'
1+
name: Pull Request
22

33
on:
44
pull_request:
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414

1515
- name: Setup Node
16-
uses: actions/setup-node@v2
16+
uses: actions/setup-node@v4
1717
with:
18-
node-version: '18'
18+
node-version: 20
1919
cache: 'yarn'
2020

2121
- name: Install Dependencies

.github/workflows/test.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1-
name: 'Build Test'
1+
name: Test
22

33
on:
44
workflow_dispatch:
55
inputs:
6+
dry-run:
7+
type: boolean
8+
description: 'Dry run'
9+
required: false
10+
default: false
611
discord-url:
12+
type: string
713
description: 'Discord Webhook URL'
814
required: false
915
slack-url:
16+
type: string
1017
description: 'Slack Webhook URL'
1118
required: false
1219
teams-url:
20+
type: string
1321
description: 'Teams Webhook URL'
1422
required: false
1523

@@ -19,11 +27,12 @@ jobs:
1927
runs-on: ubuntu-latest
2028
steps:
2129
- name: Checkout
22-
uses: actions/checkout@v2
30+
uses: actions/checkout@v4
2331

2432
- name: Testing Action
2533
uses: ./
2634
with:
35+
dry-run: ${{ github.event.inputs.dry-run }}
2736
discord-url: ${{ github.event.inputs.discord-url }}
2837
teams-url: ${{ github.event.inputs.teams-url }}
2938
slack-url: ${{ github.event.inputs.slack-url }}

.prettierrc.json

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
{
2+
"parser": "typescript",
3+
"printWidth": 80,
24
"tabWidth": 4,
35
"useTabs": false,
4-
"parser": "typescript",
5-
"singleQuote": true
6-
}
6+
"semi": true,
7+
"singleQuote": true,
8+
"quoteProps": "as-needed",
9+
"jsxSingleQuote": true,
10+
"trailingComma": "es5",
11+
"bracketSpacing": true,
12+
"bracketSameLine": false,
13+
"arrowParens": "always",
14+
"requirePragma": false,
15+
"insertPragma": false,
16+
"proseWrap": "preserve",
17+
"htmlWhitespaceSensitivity": "css",
18+
"vueIndentScriptAndStyle": false,
19+
"endOfLine": "lf",
20+
"embeddedLanguageFormatting": "auto",
21+
"singleAttributePerLine": true
22+
}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ The action has any of the follow inputs
4545
4646
| Name | Description | Default | Notes |
4747
| - | - | - | - |
48+
| `dry-run` | Prevent sending the payload | false | |
4849
| `discord-url` | Discord Webhook URL | N/A | Discord does not support buttons in incoming webhooks, yet... |
4950
| `slack-url` | Slack Webhook URL | N/A | |
50-
| `teams-url` | Teams Webhook URL | N/A | |
51+
| `teams-url` | Teams Webhook URL | N/A | Teams has deprecated giving colors to a card... |
5152
| `color` | Color of the message in hexadecimal or title of predefined | `success` | |
5253
| `title` | Text at the top of the message | `Hello world!` | |
5354
| `text` | Text to be displayed under the title | N/A | |

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ author: 'Netail'
33
description: 'Send a message to a single or to multiple webhooks at once'
44

55
inputs:
6+
dry-run:
7+
description: 'Prevent sending the payload'
8+
required: false
9+
default: 'false'
610
discord-url:
711
description: 'Discord Webhook URL'
812
required: false
@@ -31,7 +35,7 @@ inputs:
3135
required: false
3236

3337
runs:
34-
using: 'node16'
38+
using: 'node20'
3539
main: 'dist/index.js'
3640

3741
branding:

0 commit comments

Comments
 (0)