Skip to content

Commit

Permalink
fixed input naming (#28)
Browse files Browse the repository at this point in the history
* Changed to the app_key in the action.yaml.
* Added fallbacks to the old name for compatibility.
* Updated JS libs
* Built new version
  • Loading branch information
ypopovych authored Aug 1, 2024
1 parent edec5cb commit 72dbb68
Show file tree
Hide file tree
Showing 7 changed files with 27,167 additions and 841 deletions.
10 changes: 7 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ inputs:
api_key:
description: "Datadog API key"
required: true
application_key:
app_key:
description: "Datadog Application key"
required: true
required: false
application_key:
description: "(Deprecated) Datadog Application key"
deprecationMessage: "This input is deprecated. Use `app_key` instead."
required: false
platform:
description: 'Platform to run: \"ios\", \"macos\" or \"tvos\". By default: \"ios\"'
required: false
Expand Down Expand Up @@ -41,5 +45,5 @@ inputs:
required: false
default: ""
runs:
using: 'node16'
using: 'node18'
main: 'dist/index.js'
27,891 changes: 27,061 additions & 830 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

91 changes: 91 additions & 0 deletions dist/licenses.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/sourcemap-register.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ let envVars = Object.assign({}, process.env);
async function run() {
try {
const apiKey = core.getInput("api_key");
const applicationKey = core.getInput("app_key");
const applicationKey = core.getInput("app_key") || core.getInput("application_key");


if (!apiKey || !applicationKey) {
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
"author": "",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.2.5",
"@actions/core": "^1.10.1",
"@actions/exec": "^1.1.1",
"node-fetch": "^2.6.1"
"node-fetch": "^2.7.0"
},
"devDependencies": {
"@vercel/ncc": "^0.31.1",
"eslint": "^8.0.0",
"jest": "^27.2.5"
"@vercel/ncc": "^0.38.1",
"eslint": "^9.8.0",
"jest": "^29.7.0"
}
}

0 comments on commit 72dbb68

Please sign in to comment.