Skip to content

Commit

Permalink
feat: node 20 (#2)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Netail authored Feb 5, 2024
1 parent 6ec87d0 commit c169bfd
Show file tree
Hide file tree
Showing 15 changed files with 1,832 additions and 8,597 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"plugins": ["@typescript-eslint", "prettier"],
"extends": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Pull Request'
name: Pull Request

on:
pull_request:
Expand All @@ -10,12 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: 20
cache: 'yarn'

- name: Install Dependencies
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
name: 'Build Test'
name: Test

on:
workflow_dispatch:
inputs:
dry-run:
type: boolean
description: 'Dry run'
required: false
default: false
discord-url:
type: string
description: 'Discord Webhook URL'
required: false
slack-url:
type: string
description: 'Slack Webhook URL'
required: false
teams-url:
type: string
description: 'Teams Webhook URL'
required: false

Expand All @@ -19,11 +27,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Testing Action
uses: ./
with:
dry-run: ${{ github.event.inputs.dry-run }}
discord-url: ${{ github.event.inputs.discord-url }}
teams-url: ${{ github.event.inputs.teams-url }}
slack-url: ${{ github.event.inputs.slack-url }}
Expand Down
22 changes: 19 additions & 3 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
{
"parser": "typescript",
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"parser": "typescript",
"singleQuote": true
}
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "always",
"requirePragma": false,
"insertPragma": false,
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"vueIndentScriptAndStyle": false,
"endOfLine": "lf",
"embeddedLanguageFormatting": "auto",
"singleAttributePerLine": true
}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Changelog

All notable changes to this project will be documented in this file.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ The action has any of the follow inputs
| Name | Description | Default | Notes |
| - | - | - | - |
| `dry-run` | Prevent sending the payload | false | |
| `discord-url` | Discord Webhook URL | N/A | Discord does not support buttons in incoming webhooks, yet... |
| `slack-url` | Slack Webhook URL | N/A | |
| `teams-url` | Teams Webhook URL | N/A | |
| `teams-url` | Teams Webhook URL | N/A | Teams has deprecated giving colors to a card... |
| `color` | Color of the message in hexadecimal or title of predefined | `success` | |
| `title` | Text at the top of the message | `Hello world!` | |
| `text` | Text to be displayed under the title | N/A | |
Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ author: 'Netail'
description: 'Send a message to a single or to multiple webhooks at once'

inputs:
dry-run:
description: 'Prevent sending the payload'
required: false
default: 'false'
discord-url:
description: 'Discord Webhook URL'
required: false
Expand Down Expand Up @@ -31,7 +35,7 @@ inputs:
required: false

runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'

branding:
Expand Down
Loading

0 comments on commit c169bfd

Please sign in to comment.