From e7fd41c05e3f820eab8aee35c1fdbb72071f9bcb Mon Sep 17 00:00:00 2001 From: shimataro Date: Wed, 18 Sep 2019 22:53:46 +0900 Subject: [PATCH 1/8] * add .editorconfig (#4) --- .editorconfig | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..0d46254 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,37 @@ +# http://editorconfig.org/ +# https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties +root = true + + +# recommended settings; DO NOT CHANGE! +[*] +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + + +# common settings +[*] +indent_style = tab +indent_size = 4 +tab_width = 4 +max_line_length = off + +quote_type = double +curly_bracket_next_line = true +spaces_around_operators = true +spaces_around_brackets = none +indent_brace_style = allman + + +# JSON/YAML +[*.{json,babelrc,code-workspace,yml,yaml}] +indent_style = space +indent_size = 2 +tab_width = 2 + + +# markdown +[*.md] +indent_style = space From a5ede5509c6dac18fada1a0f4c11954f6724f85b Mon Sep 17 00:00:00 2001 From: shimataro Date: Wed, 18 Sep 2019 22:54:17 +0900 Subject: [PATCH 2/8] Feature/vscode (#5) * * support Visual Studio Code officially * * update CHANGELOG --- CHANGELOG.md | 4 ++++ ssh-key-action.code-workspace | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 ssh-key-action.code-workspace diff --git a/CHANGELOG.md b/CHANGELOG.md index ca715d2..7d77646 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Others + +* Support Visual Studio Code officially. + ## [1.0.0] * First release. diff --git a/ssh-key-action.code-workspace b/ssh-key-action.code-workspace new file mode 100644 index 0000000..4f60714 --- /dev/null +++ b/ssh-key-action.code-workspace @@ -0,0 +1,31 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": { + "eslint.enable": true, + "json.format.enable": true, + "typescript.format.enable": true, + "typescript.format.insertSpaceAfterCommaDelimiter": true, + "typescript.format.insertSpaceAfterConstructor": false, + "typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false, + "typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": false, + "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false, + "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false, + "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false, + "typescript.format.insertSpaceAfterSemicolonInForStatements": true, + "typescript.format.insertSpaceBeforeAndAfterBinaryOperators": true, + "typescript.format.insertSpaceBeforeFunctionParenthesis": false, + "typescript.format.placeOpenBraceOnNewLineForFunctions": true, + "typescript.format.placeOpenBraceOnNewLineForControlBlocks": true, + "typescript.validate.enable": true + }, + "extensions": { + "recommendations": [ + "EditorConfig.EditorConfig", + "eg2.vscode-npm-script" + ] + } +} From 010eec3d7a98cd44a81488be8d54b21edf4f4db5 Mon Sep 17 00:00:00 2001 From: shimataro Date: Wed, 18 Sep 2019 22:55:24 +0900 Subject: [PATCH 3/8] Feature/styles (#6) * * use tab for indent * * use double quotes for string * * use camelCase for variable * * use path.join() * * add JSDoc --- README.md | 2 +- action.yml | 22 +++++++++--------- lib/main.js | 17 ++++++++------ lib/main.js.map | 2 +- src/main.ts | 61 ++++++++++++++++++++++++++----------------------- 5 files changed, 55 insertions(+), 49 deletions(-) diff --git a/README.md b/README.md index 6de1f63..b862fb2 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ steps: with: private-key: ${{ secret.SSH_KEY }} public-key: ${{ secret.SSH_KEY_PUBLIC }} - name: 'id_rsa' # optional + name: id_rsa # optional - name: Install packages run: apt install openssh-client rsync - name: rsync over ssh diff --git a/action.yml b/action.yml index cda2719..9b5cd2a 100644 --- a/action.yml +++ b/action.yml @@ -1,19 +1,19 @@ -name: 'Install SSH Key' -description: 'Install SSH key to ~/.ssh' -author: 'shimataro' +name: "Install SSH Key" +description: "Install SSH key to ~/.ssh" +author: "shimataro" branding: - icon: 'terminal' - color: 'gray-dark' + icon: "terminal" + color: "gray-dark" inputs: private-key: - description: 'private SSH key' + description: "private SSH key" required: true public-key: - description: 'public SSH key' + description: "public SSH key" required: true name: - description: 'SSH key file name (default: id_rsa)' - default: 'id_rsa' + description: "SSH key file name (default: id_rsa)" + default: "id_rsa" runs: - using: 'node12' - main: 'lib/main.js' + using: "node12" + main: "lib/main.js" diff --git a/lib/main.js b/lib/main.js index 645750b..b161818 100644 --- a/lib/main.js +++ b/lib/main.js @@ -10,6 +10,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); const fs = __importStar(require("fs")); const path = __importStar(require("path")); const core = __importStar(require("@actions/core")); +/** + * main function + */ function main() { try { const home = getHomeDirectory(); @@ -18,10 +21,10 @@ function main() { recursive: true, mode: 0o700, }); - const privateKey = core.getInput('private-key'); - const publicKey = core.getInput('public-key'); - const name = core.getInput('name'); - const fileName = path.resolve(dirName, name); + const privateKey = core.getInput("private-key"); + const publicKey = core.getInput("public-key"); + const name = core.getInput("name"); + const fileName = path.join(dirName, name); fs.writeFileSync(fileName, privateKey, { mode: 0o400, }); @@ -39,10 +42,10 @@ function main() { * @returns home directory */ function getHomeDirectory() { - const home_env = process.platform == "win32" ? "USERPROFILE" : "HOME"; - const home = process.env[home_env]; + const homeEnv = process.platform == "win32" ? "USERPROFILE" : "HOME"; + const home = process.env[homeEnv]; if (home === undefined) { - throw new Error(`${home_env} is not defined`); + throw new Error(`${homeEnv} is not defined`); } return home; } diff --git a/lib/main.js.map b/lib/main.js.map index 5bacbf6..a38ba14 100644 --- a/lib/main.js.map +++ b/lib/main.js.map @@ -1 +1 @@ -{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,oDAAsC;AAEtC,S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AAC,MAAM,CAAC;IACrE,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAClC,IAAG,IAAI,KAAK,SAAS,EACrB;QACI,MAAM,IAAI,KAAK,CAAC,GAAG,OAAO,iBAAiB,CAAC,CAAC;KAChD;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,IAAI,EAAE,CAAC"} \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 3d8095c..67803aa 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,37 +1,40 @@ import * as fs from "fs"; -import * as path from 'path'; +import * as path from "path"; -import * as core from '@actions/core'; +import * as core from "@actions/core"; +/** + * main function + */ function main(): void { - try - { - const home = getHomeDirectory(); - const dirName = path.resolve(home, ".ssh"); - fs.mkdirSync(dirName, { - recursive: true, - mode: 0o700, - }); + try + { + const home = getHomeDirectory(); + const dirName = path.resolve(home, ".ssh"); + fs.mkdirSync(dirName, { + recursive: true, + mode: 0o700, + }); - const privateKey = core.getInput('private-key') as string; - const publicKey = core.getInput('public-key') as string; - const name = core.getInput('name') as string; + const privateKey = core.getInput("private-key") as string; + const publicKey = core.getInput("public-key") as string; + const name = core.getInput("name") as string; - const fileName = path.resolve(dirName, name); - fs.writeFileSync(fileName, privateKey, { - mode: 0o400, - }); - fs.writeFileSync(`${fileName}.pub`, publicKey, { - mode: 0o444, - }); + const fileName = path.join(dirName, name); + fs.writeFileSync(fileName, privateKey, { + mode: 0o400, + }); + fs.writeFileSync(`${fileName}.pub`, publicKey, { + mode: 0o444, + }); - console.log(`SSH key has been stored to ${fileName} successfully.`); - } - catch(err) - { - core.setFailed(err.message); - } + console.log(`SSH key has been stored to ${fileName} successfully.`); + } + catch(err) + { + core.setFailed(err.message); + } } /** @@ -40,11 +43,11 @@ function main(): void */ function getHomeDirectory(): string { - const home_env = process.platform == "win32" ? "USERPROFILE" : "HOME"; - const home = process.env[home_env]; + const homeEnv = process.platform == "win32" ? "USERPROFILE" : "HOME"; + const home = process.env[homeEnv]; if(home === undefined) { - throw new Error(`${home_env} is not defined`); + throw new Error(`${homeEnv} is not defined`); } return home; From 3f31f3b902e0541400e15a66005d31f858c47ba7 Mon Sep 17 00:00:00 2001 From: shimataro Date: Wed, 18 Sep 2019 23:13:14 +0900 Subject: [PATCH 4/8] * add build check CI (#7) * * add build check CI * * remove "npm i" * * update CHANGELOG --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ CHANGELOG.md | 1 + 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1cdbec4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +# https://help.github.com/ja/articles/workflow-syntax-for-github-actions + +on: + push: + branches: + - master + - develop + pull_request: +name: Build check +jobs: + build: + name: Build on ${{ matrix.platform }} / Node.js v${{ matrix.nodejs }} + runs-on: ${{ matrix.platform }} + strategy: + matrix: + platform: + - "Windows-latest" + - "macOS-latest" + - "Ubuntu-latest" + nodejs: + - 12 + steps: + - name: Turn off auto-crlf + run: git config --global core.autocrlf false + - name: Checkout source codes + uses: actions/checkout@v1 + - name: Install Node.js + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.nodejs }} + - name: Build + run: npm run build diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d77646..526eafe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Others * Support Visual Studio Code officially. +* Use GitHub Actions for build test. ## [1.0.0] From 4ea0f24aab9dcb70a1946bff79da1968827e9c26 Mon Sep 17 00:00:00 2001 From: shimataro Date: Thu, 19 Sep 2019 06:55:40 +0900 Subject: [PATCH 5/8] * use tab for indent (#8) --- lib/main.js.map | 2 +- src/main.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/main.js.map b/lib/main.js.map index a38ba14..03808b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S,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;KAC5B;AACF,CAAC;AAED;;;GAGG;AACH,SAAS,gBAAgB;IAExB,MAAM,OAAO,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACrE,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAClC,IAAG,IAAI,KAAK,SAAS,EACrB;QACC,MAAM,IAAI,KAAK,CAAC,GAAG,OAAO,iBAAiB,CAAC,CAAC;KAC7C;IAED,OAAO,IAAI,CAAC;AACb,CAAC;AAED,IAAI,EAAE,CAAC"} \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 67803aa..3500b2b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -43,14 +43,14 @@ function main(): void */ function getHomeDirectory(): string { - const homeEnv = process.platform == "win32" ? "USERPROFILE" : "HOME"; - const home = process.env[homeEnv]; - if(home === undefined) - { - throw new Error(`${homeEnv} is not defined`); - } + const homeEnv = process.platform == "win32" ? "USERPROFILE" : "HOME"; + const home = process.env[homeEnv]; + if(home === undefined) + { + throw new Error(`${homeEnv} is not defined`); + } - return home; + return home; } main(); From fbd8b6aa41437ff016e9489b6f97c51677fd7661 Mon Sep 17 00:00:00 2001 From: shimataro Date: Thu, 19 Sep 2019 07:05:03 +0900 Subject: [PATCH 6/8] Feature/readme (#9) * * add badges * * add link to CHANGELOG --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index b862fb2..09d8c97 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # Install SSH key +[![Build check][image-build-check]][link-build-check] +[![Release][image-release]][link-release] +[![License][image-license]][link-license] + This action installs SSH key into `~/.ssh`. Useful for `rsync` over SSH in deployment script. @@ -28,3 +32,14 @@ See [Workflow syntax for GitHub Actions](https://help.github.com/en/articles/wor ## License The scripts and documentation in this project are released under the [MIT License](LICENSE) + +## Changelog + +See [CHANGELOG.md](CHANGELOG.md). + +[image-build-check]: https://github.com/shimataro/ssh-key-action/workflows/Build%20check/badge.svg +[link-build-check]: https://github.com/shimataro/ssh-key-action +[image-release]: https://img.shields.io/github/release/shimataro/ssh-key-action.svg +[link-release]: https://github.com/shimataro/ssh-key-action/releases +[image-license]: https://img.shields.io/github/license/shimataro/ssh-key-action.svg +[link-license]: ./LICENSE From 68db9bb092413b67146a4eb26cb0e495b9d73a06 Mon Sep 17 00:00:00 2001 From: shimataro Date: Thu, 19 Sep 2019 07:10:37 +0900 Subject: [PATCH 7/8] * change workflow name (#10) --- .github/workflows/build.yml | 2 +- README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1cdbec4..a4516ca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ on: - master - develop pull_request: -name: Build check +name: Build jobs: build: name: Build on ${{ matrix.platform }} / Node.js v${{ matrix.nodejs }} diff --git a/README.md b/README.md index 09d8c97..03e6e92 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Install SSH key -[![Build check][image-build-check]][link-build-check] +[![Build][image-build]][link-build] [![Release][image-release]][link-release] [![License][image-license]][link-license] @@ -37,8 +37,8 @@ The scripts and documentation in this project are released under the [MIT Licens See [CHANGELOG.md](CHANGELOG.md). -[image-build-check]: https://github.com/shimataro/ssh-key-action/workflows/Build%20check/badge.svg -[link-build-check]: https://github.com/shimataro/ssh-key-action +[image-build]: https://github.com/shimataro/ssh-key-action/workflows/Build/badge.svg +[link-build]: https://github.com/shimataro/ssh-key-action [image-release]: https://img.shields.io/github/release/shimataro/ssh-key-action.svg [link-release]: https://github.com/shimataro/ssh-key-action/releases [image-license]: https://img.shields.io/github/license/shimataro/ssh-key-action.svg From 6feada438dcbd324efb4095062e36ef371fb7f44 Mon Sep 17 00:00:00 2001 From: shimataro Date: Thu, 19 Sep 2019 07:23:20 +0900 Subject: [PATCH 8/8] release v1.1.0 (#11) * * update version * update CHANGELOG * * update dependencies * * update package name * fix repository URL --- CHANGELOG.md | 5 +- node_modules/@actions/core/LICENSE.md | 7 - node_modules/@actions/core/README.md | 192 +++++----- node_modules/@actions/core/lib/command.d.ts | 32 +- node_modules/@actions/core/lib/command.js | 130 +++---- node_modules/@actions/core/lib/command.js.map | 2 +- node_modules/@actions/core/lib/core.d.ts | 193 +++++----- node_modules/@actions/core/lib/core.js | 343 +++++++++--------- node_modules/@actions/core/lib/core.js.map | 2 +- node_modules/@actions/core/package.json | 21 +- package-lock.json | 10 +- package.json | 10 +- 12 files changed, 478 insertions(+), 469 deletions(-) delete mode 100644 node_modules/@actions/core/LICENSE.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 526eafe..48998b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [1.1.0] + ### Others * Support Visual Studio Code officially. @@ -16,5 +18,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. * First release. -[Unreleased]: https://github.com/shimataro/ssh-key-action/compare/v1.0.0...HEAD +[Unreleased]: https://github.com/shimataro/ssh-key-action/compare/v1.1.0...HEAD +[1.1.0]: https://github.com/shimataro/ssh-key-action/compare/v1.0.0...v1.1.0 [1.0.0]: https://github.com/shimataro/ssh-key-action/compare/8deacc95b1ee5732107e56baa4c8aac4c386ef7e...v1.0.0 diff --git a/node_modules/@actions/core/LICENSE.md b/node_modules/@actions/core/LICENSE.md deleted file mode 100644 index e5a73f4..0000000 --- a/node_modules/@actions/core/LICENSE.md +++ /dev/null @@ -1,7 +0,0 @@ -Copyright 2019 GitHub - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/@actions/core/README.md b/node_modules/@actions/core/README.md index 58a8287..ad09718 100644 --- a/node_modules/@actions/core/README.md +++ b/node_modules/@actions/core/README.md @@ -1,97 +1,97 @@ -# `@actions/core` - -> Core functions for setting results, logging, registering secrets and exporting variables across actions - -## Usage - -#### Inputs/Outputs - -You can use this library to get inputs or set outputs: - -```js -const core = require('@actions/core'); - -const myInput = core.getInput('inputName', { required: true }); - -// Do stuff - -core.setOutput('outputKey', 'outputVal'); -``` - -#### Exporting variables - -You can also export variables for future steps. Variables get set in the environment. - -```js -const core = require('@actions/core'); - -// Do stuff - -core.exportVariable('envVar', 'Val'); -``` - -#### PATH Manipulation - -You can explicitly add items to the path for all remaining steps in a workflow: - -```js -const core = require('@actions/core'); - -core.addPath('pathToTool'); -``` - -#### Exit codes - -You should use this library to set the failing exit code for your action: - -```js -const core = require('@actions/core'); - -try { - // Do stuff -} -catch (err) { - // setFailed logs the message and sets a failing exit code - core.setFailed(`Action failed with error ${err}`); -} - -``` - -#### Logging - -Finally, this library provides some utilities for logging. Note that debug logging is hidden from the logs by default. This behavior can be toggled by enabling the [Step Debug Logs](../../docs/action-debugging.md#step-debug-logs). - -```js -const core = require('@actions/core'); - -const myInput = core.getInput('input'); -try { - core.debug('Inside try block'); - - if (!myInput) { - core.warning('myInput was not set'); - } - - // Do stuff -} -catch (err) { - core.error(`Error ${err}, action may still succeed though`); -} -``` - -This library can also wrap chunks of output in foldable groups. - -```js -const core = require('@actions/core') - -// Manually wrap output -core.startGroup('Do some function') -doSomeFunction() -core.endGroup() - -// Wrap an asynchronous function call -const result = await core.group('Do something async', async () => { - const response = await doSomeHTTPRequest() - return response -}) +# `@actions/core` + +> Core functions for setting results, logging, registering secrets and exporting variables across actions + +## Usage + +#### Inputs/Outputs + +You can use this library to get inputs or set outputs: + +```js +const core = require('@actions/core'); + +const myInput = core.getInput('inputName', { required: true }); + +// Do stuff + +core.setOutput('outputKey', 'outputVal'); +``` + +#### Exporting variables + +You can also export variables for future steps. Variables get set in the environment. + +```js +const core = require('@actions/core'); + +// Do stuff + +core.exportVariable('envVar', 'Val'); +``` + +#### PATH Manipulation + +You can explicitly add items to the path for all remaining steps in a workflow: + +```js +const core = require('@actions/core'); + +core.addPath('pathToTool'); +``` + +#### Exit codes + +You should use this library to set the failing exit code for your action: + +```js +const core = require('@actions/core'); + +try { + // Do stuff +} +catch (err) { + // setFailed logs the message and sets a failing exit code + core.setFailed(`Action failed with error ${err}`); +} + +``` + +#### Logging + +Finally, this library provides some utilities for logging. Note that debug logging is hidden from the logs by default. This behavior can be toggled by enabling the [Step Debug Logs](../../docs/action-debugging.md#step-debug-logs). + +```js +const core = require('@actions/core'); + +const myInput = core.getInput('input'); +try { + core.debug('Inside try block'); + + if (!myInput) { + core.warning('myInput was not set'); + } + + // Do stuff +} +catch (err) { + core.error(`Error ${err}, action may still succeed though`); +} +``` + +This library can also wrap chunks of output in foldable groups. + +```js +const core = require('@actions/core') + +// Manually wrap output +core.startGroup('Do some function') +doSomeFunction() +core.endGroup() + +// Wrap an asynchronous function call +const result = await core.group('Do something async', async () => { + const response = await doSomeHTTPRequest() + return response +}) ``` \ No newline at end of file diff --git a/node_modules/@actions/core/lib/command.d.ts b/node_modules/@actions/core/lib/command.d.ts index 7f6fecb..7cdfb74 100644 --- a/node_modules/@actions/core/lib/command.d.ts +++ b/node_modules/@actions/core/lib/command.d.ts @@ -1,16 +1,16 @@ -interface CommandProperties { - [key: string]: string; -} -/** - * Commands - * - * Command Format: - * ##[name key=value;key=value]message - * - * Examples: - * ##[warning]This is the user warning message - * ##[set-secret name=mypassword]definitelyNotAPassword! - */ -export declare function issueCommand(command: string, properties: CommandProperties, message: string): void; -export declare function issue(name: string, message?: string): void; -export {}; +interface CommandProperties { + [key: string]: string; +} +/** + * Commands + * + * Command Format: + * ##[name key=value;key=value]message + * + * Examples: + * ##[warning]This is the user warning message + * ##[set-secret name=mypassword]definitelyNotAPassword! + */ +export declare function issueCommand(command: string, properties: CommandProperties, message: string): void; +export declare function issue(name: string, message?: string): void; +export {}; diff --git a/node_modules/@actions/core/lib/command.js b/node_modules/@actions/core/lib/command.js index f2297f5..afad2f6 100644 --- a/node_modules/@actions/core/lib/command.js +++ b/node_modules/@actions/core/lib/command.js @@ -1,66 +1,66 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const os = require("os"); -/** - * Commands - * - * Command Format: - * ##[name key=value;key=value]message - * - * Examples: - * ##[warning]This is the user warning message - * ##[set-secret name=mypassword]definitelyNotAPassword! - */ -function issueCommand(command, properties, message) { - const cmd = new Command(command, properties, message); - process.stdout.write(cmd.toString() + os.EOL); -} -exports.issueCommand = issueCommand; -function issue(name, message = '') { - issueCommand(name, {}, message); -} -exports.issue = issue; -const CMD_PREFIX = '##['; -class Command { - constructor(command, properties, message) { - if (!command) { - command = 'missing.command'; - } - this.command = command; - this.properties = properties; - this.message = message; - } - toString() { - let cmdStr = CMD_PREFIX + this.command; - if (this.properties && Object.keys(this.properties).length > 0) { - cmdStr += ' '; - for (const key in this.properties) { - if (this.properties.hasOwnProperty(key)) { - const val = this.properties[key]; - if (val) { - // safely append the val - avoid blowing up when attempting to - // call .replace() if message is not a string for some reason - cmdStr += `${key}=${escape(`${val || ''}`)};`; - } - } - } - } - cmdStr += ']'; - // safely append the message - avoid blowing up when attempting to - // call .replace() if message is not a string for some reason - const message = `${this.message || ''}`; - cmdStr += escapeData(message); - return cmdStr; - } -} -function escapeData(s) { - return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A'); -} -function escape(s) { - return s - .replace(/\r/g, '%0D') - .replace(/\n/g, '%0A') - .replace(/]/g, '%5D') - .replace(/;/g, '%3B'); -} +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const os = require("os"); +/** + * Commands + * + * Command Format: + * ##[name key=value;key=value]message + * + * Examples: + * ##[warning]This is the user warning message + * ##[set-secret name=mypassword]definitelyNotAPassword! + */ +function issueCommand(command, properties, message) { + const cmd = new Command(command, properties, message); + process.stdout.write(cmd.toString() + os.EOL); +} +exports.issueCommand = issueCommand; +function issue(name, message = '') { + issueCommand(name, {}, message); +} +exports.issue = issue; +const CMD_STRING = '::'; +class Command { + constructor(command, properties, message) { + if (!command) { + command = 'missing.command'; + } + this.command = command; + this.properties = properties; + this.message = message; + } + toString() { + let cmdStr = CMD_STRING + this.command; + if (this.properties && Object.keys(this.properties).length > 0) { + cmdStr += ' '; + for (const key in this.properties) { + if (this.properties.hasOwnProperty(key)) { + const val = this.properties[key]; + if (val) { + // safely append the val - avoid blowing up when attempting to + // call .replace() if message is not a string for some reason + cmdStr += `${key}=${escape(`${val || ''}`)},`; + } + } + } + } + cmdStr += CMD_STRING; + // safely append the message - avoid blowing up when attempting to + // call .replace() if message is not a string for some reason + const message = `${this.message || ''}`; + cmdStr += escapeData(message); + return cmdStr; + } +} +function escapeData(s) { + return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A'); +} +function escape(s) { + return s + .replace(/\r/g, '%0D') + .replace(/\n/g, '%0A') + .replace(/]/g, '%5D') + .replace(/;/g, '%3B'); +} //# sourceMappingURL=command.js.map \ No newline at end of file diff --git a/node_modules/@actions/core/lib/command.js.map b/node_modules/@actions/core/lib/command.js.map index 6d3dacc..918ab25 100644 --- a/node_modules/@actions/core/lib/command.js.map +++ b/node_modules/@actions/core/lib/command.js.map @@ -1 +1 @@ -{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;AAAA,yBAAwB;AAQxB;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAe;IAEf,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,UAAkB,EAAE;IACtD,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,KAAK,CAAA;AAExB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAEtC,IAAI,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,CAAA;YACb,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjC,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UA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AC3B,OAAO,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AACtD,CAAC;AAED,SAAS,MAAM,CAAC,CAAS;IACvB,OAAO,CAAC;SACL,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/core.d.ts b/node_modules/@actions/core/lib/core.d.ts index b741d43..3e63dc3 100644 --- a/node_modules/@actions/core/lib/core.d.ts +++ b/node_modules/@actions/core/lib/core.d.ts @@ -1,94 +1,99 @@ -/** - * Interface for getInput options - */ -export interface InputOptions { - /** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */ - required?: boolean; -} -/** - * The code to exit an action - */ -export declare enum ExitCode { - /** - * A code indicating that the action was successful - */ - Success = 0, - /** - * A code indicating that the action was a failure - */ - Failure = 1 -} -/** - * sets env variable for this action and future actions in the job - * @param name the name of the variable to set - * @param val the value of the variable - */ -export declare function exportVariable(name: string, val: string): void; -/** - * exports the variable and registers a secret which will get masked from logs - * @param name the name of the variable to set - * @param val value of the secret - */ -export declare function exportSecret(name: string, val: string): void; -/** - * Prepends inputPath to the PATH (for this action and future actions) - * @param inputPath - */ -export declare function addPath(inputPath: string): void; -/** - * Gets the value of an input. The value is also trimmed. - * - * @param name name of the input to get - * @param options optional. See InputOptions. - * @returns string - */ -export declare function getInput(name: string, options?: InputOptions): string; -/** - * Sets the value of an output. - * - * @param name name of the output to set - * @param value value to store - */ -export declare function setOutput(name: string, value: string): void; -/** - * Sets the action status to failed. - * When the action exits it will be with an exit code of 1 - * @param message add error issue message - */ -export declare function setFailed(message: string): void; -/** - * Writes debug message to user log - * @param message debug message - */ -export declare function debug(message: string): void; -/** - * Adds an error issue - * @param message error issue message - */ -export declare function error(message: string): void; -/** - * Adds an warning issue - * @param message warning issue message - */ -export declare function warning(message: string): void; -/** - * Begin an output group. - * - * Output until the next `groupEnd` will be foldable in this group - * - * @param name The name of the output group - */ -export declare function startGroup(name: string): void; -/** - * End an output group. - */ -export declare function endGroup(): void; -/** - * Wrap an asynchronous function call in a group. - * - * Returns the same type as the function itself. - * - * @param name The name of the group - * @param fn The function to wrap in the group - */ -export declare function group(name: string, fn: () => Promise): Promise; +/** + * Interface for getInput options + */ +export interface InputOptions { + /** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */ + required?: boolean; +} +/** + * The code to exit an action + */ +export declare enum ExitCode { + /** + * A code indicating that the action was successful + */ + Success = 0, + /** + * A code indicating that the action was a failure + */ + Failure = 1 +} +/** + * sets env variable for this action and future actions in the job + * @param name the name of the variable to set + * @param val the value of the variable + */ +export declare function exportVariable(name: string, val: string): void; +/** + * exports the variable and registers a secret which will get masked from logs + * @param name the name of the variable to set + * @param val value of the secret + */ +export declare function exportSecret(name: string, val: string): void; +/** + * Prepends inputPath to the PATH (for this action and future actions) + * @param inputPath + */ +export declare function addPath(inputPath: string): void; +/** + * Gets the value of an input. The value is also trimmed. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string + */ +export declare function getInput(name: string, options?: InputOptions): string; +/** + * Sets the value of an output. + * + * @param name name of the output to set + * @param value value to store + */ +export declare function setOutput(name: string, value: string): void; +/** + * Sets the action status to failed. + * When the action exits it will be with an exit code of 1 + * @param message add error issue message + */ +export declare function setFailed(message: string): void; +/** + * Writes debug message to user log + * @param message debug message + */ +export declare function debug(message: string): void; +/** + * Adds an error issue + * @param message error issue message + */ +export declare function error(message: string): void; +/** + * Adds an warning issue + * @param message warning issue message + */ +export declare function warning(message: string): void; +/** + * Writes info to log with console.log. + * @param message info message + */ +export declare function info(message: string): void; +/** + * Begin an output group. + * + * Output until the next `groupEnd` will be foldable in this group + * + * @param name The name of the output group + */ +export declare function startGroup(name: string): void; +/** + * End an output group. + */ +export declare function endGroup(): void; +/** + * Wrap an asynchronous function call in a group. + * + * Returns the same type as the function itself. + * + * @param name The name of the group + * @param fn The function to wrap in the group + */ +export declare function group(name: string, fn: () => Promise): Promise; diff --git a/node_modules/@actions/core/lib/core.js b/node_modules/@actions/core/lib/core.js index 54ce8e8..5e5f51f 100644 --- a/node_modules/@actions/core/lib/core.js +++ b/node_modules/@actions/core/lib/core.js @@ -1,168 +1,177 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const command_1 = require("./command"); -const path = require("path"); -/** - * The code to exit an action - */ -var ExitCode; -(function (ExitCode) { - /** - * A code indicating that the action was successful - */ - ExitCode[ExitCode["Success"] = 0] = "Success"; - /** - * A code indicating that the action was a failure - */ - ExitCode[ExitCode["Failure"] = 1] = "Failure"; -})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); -//----------------------------------------------------------------------- -// Variables -//----------------------------------------------------------------------- -/** - * sets env variable for this action and future actions in the job - * @param name the name of the variable to set - * @param val the value of the variable - */ -function exportVariable(name, val) { - process.env[name] = val; - command_1.issueCommand('set-env', { name }, val); -} -exports.exportVariable = exportVariable; -/** - * exports the variable and registers a secret which will get masked from logs - * @param name the name of the variable to set - * @param val value of the secret - */ -function exportSecret(name, val) { - exportVariable(name, val); - // the runner will error with not implemented - // leaving the function but raising the error earlier - command_1.issueCommand('set-secret', {}, val); - throw new Error('Not implemented.'); -} -exports.exportSecret = exportSecret; -/** - * Prepends inputPath to the PATH (for this action and future actions) - * @param inputPath - */ -function addPath(inputPath) { - command_1.issueCommand('add-path', {}, inputPath); - process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; -} -exports.addPath = addPath; -/** - * Gets the value of an input. The value is also trimmed. - * - * @param name name of the input to get - * @param options optional. See InputOptions. - * @returns string - */ -function getInput(name, options) { - const val = process.env[`INPUT_${name.replace(' ', '_').toUpperCase()}`] || ''; - if (options && options.required && !val) { - throw new Error(`Input required and not supplied: ${name}`); - } - return val.trim(); -} -exports.getInput = getInput; -/** - * Sets the value of an output. - * - * @param name name of the output to set - * @param value value to store - */ -function setOutput(name, value) { - command_1.issueCommand('set-output', { name }, value); -} -exports.setOutput = setOutput; -//----------------------------------------------------------------------- -// Results -//----------------------------------------------------------------------- -/** - * Sets the action status to failed. - * When the action exits it will be with an exit code of 1 - * @param message add error issue message - */ -function setFailed(message) { - process.exitCode = ExitCode.Failure; - error(message); -} -exports.setFailed = setFailed; -//----------------------------------------------------------------------- -// Logging Commands -//----------------------------------------------------------------------- -/** - * Writes debug message to user log - * @param message debug message - */ -function debug(message) { - command_1.issueCommand('debug', {}, message); -} -exports.debug = debug; -/** - * Adds an error issue - * @param message error issue message - */ -function error(message) { - command_1.issue('error', message); -} -exports.error = error; -/** - * Adds an warning issue - * @param message warning issue message - */ -function warning(message) { - command_1.issue('warning', message); -} -exports.warning = warning; -/** - * Begin an output group. - * - * Output until the next `groupEnd` will be foldable in this group - * - * @param name The name of the output group - */ -function startGroup(name) { - command_1.issue('group', name); -} -exports.startGroup = startGroup; -/** - * End an output group. - */ -function endGroup() { - command_1.issue('endgroup'); -} -exports.endGroup = endGroup; -/** - * Wrap an asynchronous function call in a group. - * - * Returns the same type as the function itself. - * - * @param name The name of the group - * @param fn The function to wrap in the group - */ -function group(name, fn) { - return __awaiter(this, void 0, void 0, function* () { - startGroup(name); - let result; - try { - result = yield fn(); - } - finally { - endGroup(); - } - return result; - }); -} -exports.group = group; +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const command_1 = require("./command"); +const os = require("os"); +const path = require("path"); +/** + * The code to exit an action + */ +var ExitCode; +(function (ExitCode) { + /** + * A code indicating that the action was successful + */ + ExitCode[ExitCode["Success"] = 0] = "Success"; + /** + * A code indicating that the action was a failure + */ + ExitCode[ExitCode["Failure"] = 1] = "Failure"; +})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); +//----------------------------------------------------------------------- +// Variables +//----------------------------------------------------------------------- +/** + * sets env variable for this action and future actions in the job + * @param name the name of the variable to set + * @param val the value of the variable + */ +function exportVariable(name, val) { + process.env[name] = val; + command_1.issueCommand('set-env', { name }, val); +} +exports.exportVariable = exportVariable; +/** + * exports the variable and registers a secret which will get masked from logs + * @param name the name of the variable to set + * @param val value of the secret + */ +function exportSecret(name, val) { + exportVariable(name, val); + // the runner will error with not implemented + // leaving the function but raising the error earlier + command_1.issueCommand('set-secret', {}, val); + throw new Error('Not implemented.'); +} +exports.exportSecret = exportSecret; +/** + * Prepends inputPath to the PATH (for this action and future actions) + * @param inputPath + */ +function addPath(inputPath) { + command_1.issueCommand('add-path', {}, inputPath); + process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; +} +exports.addPath = addPath; +/** + * Gets the value of an input. The value is also trimmed. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string + */ +function getInput(name, options) { + const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || ''; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); + } + return val.trim(); +} +exports.getInput = getInput; +/** + * Sets the value of an output. + * + * @param name name of the output to set + * @param value value to store + */ +function setOutput(name, value) { + command_1.issueCommand('set-output', { name }, value); +} +exports.setOutput = setOutput; +//----------------------------------------------------------------------- +// Results +//----------------------------------------------------------------------- +/** + * Sets the action status to failed. + * When the action exits it will be with an exit code of 1 + * @param message add error issue message + */ +function setFailed(message) { + process.exitCode = ExitCode.Failure; + error(message); +} +exports.setFailed = setFailed; +//----------------------------------------------------------------------- +// Logging Commands +//----------------------------------------------------------------------- +/** + * Writes debug message to user log + * @param message debug message + */ +function debug(message) { + command_1.issueCommand('debug', {}, message); +} +exports.debug = debug; +/** + * Adds an error issue + * @param message error issue message + */ +function error(message) { + command_1.issue('error', message); +} +exports.error = error; +/** + * Adds an warning issue + * @param message warning issue message + */ +function warning(message) { + command_1.issue('warning', message); +} +exports.warning = warning; +/** + * Writes info to log with console.log. + * @param message info message + */ +function info(message) { + process.stdout.write(message + os.EOL); +} +exports.info = info; +/** + * Begin an output group. + * + * Output until the next `groupEnd` will be foldable in this group + * + * @param name The name of the output group + */ +function startGroup(name) { + command_1.issue('group', name); +} +exports.startGroup = startGroup; +/** + * End an output group. + */ +function endGroup() { + command_1.issue('endgroup'); +} +exports.endGroup = endGroup; +/** + * Wrap an asynchronous function call in a group. + * + * Returns the same type as the function itself. + * + * @param name The name of the group + * @param fn The function to wrap in the group + */ +function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup(name); + let result; + try { + result = yield fn(); + } + finally { + endGroup(); + } + return result; + }); +} +exports.group = group; //# sourceMappingURL=core.js.map \ No newline at end of file diff --git a/node_modules/@actions/core/lib/core.js.map b/node_modules/@actions/core/lib/core.js.map index e47240e..fed6e2d 100644 --- a/node_modules/@actions/core/lib/core.js.map +++ b/node_modules/@actions/core/lib/core.js.map @@ -1 +1 @@ -{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;;;;;;;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,CAAA;AAC3B,CAAC;AAFD,0BAEC;AAED;;;GAGG;AACH,SAAgB,IAAI,CAAC,OAAe;IAClC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AACxC,CAAC;AAFD,oBAEC;AAED;;;;;;GAMG;AACH,SAAgB,UAAU,CAAC,IAAY;IACrC,eAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AACtB,CAAC;AAFD,gCAEC;AAED;;GAEG;AACH,SAAgB,QAAQ;IACtB,eAAK,CAAC,UAAU,CAAC,CAAA;AACnB,CAAC;AAFD,4BAEC;AAED;;;;;;;GAOG;AACH,SAAsB,KAAK,CAAI,IAAY,EAAE,EAAoB;;QAC/D,UAAU,CAAC,IAAI,CAAC,CAAA;QAEhB,IAAI,MAAS,CAAA;QAEb,IAAI;YACF,MAAM,GAAG,MAAM,EAAE,EAAE,CAAA;SACpB;gBAAS;YACR,QAAQ,EAAE,CAAA;SACX;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAZD,sBAYC"} \ No newline at end of file diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json index 8baad8a..6adbe13 100644 --- a/node_modules/@actions/core/package.json +++ b/node_modules/@actions/core/package.json @@ -1,28 +1,28 @@ { - "_from": "@actions/core@1.1.0", - "_id": "@actions/core@1.1.0", + "_from": "@actions/core@1.1.1", + "_id": "@actions/core@1.1.1", "_inBundle": false, - "_integrity": "sha512-KKpo3xzo0Zsikni9tbOsEQkxZBGDsYSJZNkTvmo0gPSXrc98TBOcdTvKwwjitjkjHkreTggWdB1ACiAFVgsuzA==", + "_integrity": "sha512-O5G6EmlzTVsng7VSpNtszIoQq6kOgMGNTFB/hmwKNNA4V71JyxImCIrL27vVHCt2Cb3ImkaCr6o27C2MV9Ylwg==", "_location": "/@actions/core", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "@actions/core@1.1.0", + "raw": "@actions/core@1.1.1", "name": "@actions/core", "escapedName": "@actions%2fcore", "scope": "@actions", - "rawSpec": "1.1.0", + "rawSpec": "1.1.1", "saveSpec": null, - "fetchSpec": "1.1.0" + "fetchSpec": "1.1.1" }, "_requiredBy": [ "/", "/@actions/tool-cache" ], - "_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.1.0.tgz", - "_shasum": "25c3aff43a20f9c5a04e2a3439898a49ba8d3625", - "_spec": "@actions/core@1.1.0", + "_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.1.1.tgz", + "_shasum": "e08f3dbfe04721bb3d040f8fca2d6d7e1817b2e1", + "_spec": "@actions/core@1.1.1", "_where": "/home/shimataro/projects/actions/ssh-key-action", "bugs": { "url": "https://github.com/actions/toolkit/issues" @@ -40,7 +40,6 @@ "files": [ "lib" ], - "gitHead": "a2ab4bcf78e4f7080f0d45856e6eeba16f0bbc52", "homepage": "https://github.com/actions/toolkit/tree/master/packages/core", "keywords": [ "github", @@ -61,5 +60,5 @@ "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, - "version": "1.1.0" + "version": "1.1.1" } diff --git a/package-lock.json b/package-lock.json index 348682e..04c0380 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,13 @@ { - "name": "action-install-ssh-key", - "version": "1.0.0", + "name": "ssh-key-action", + "version": "1.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { "@actions/core": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.1.0.tgz", - "integrity": "sha512-KKpo3xzo0Zsikni9tbOsEQkxZBGDsYSJZNkTvmo0gPSXrc98TBOcdTvKwwjitjkjHkreTggWdB1ACiAFVgsuzA==" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.1.1.tgz", + "integrity": "sha512-O5G6EmlzTVsng7VSpNtszIoQq6kOgMGNTFB/hmwKNNA4V71JyxImCIrL27vVHCt2Cb3ImkaCr6o27C2MV9Ylwg==" }, "@actions/exec": { "version": "1.0.1", diff --git a/package.json b/package.json index 85120b0..235fb9b 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "action-install-ssh-key", - "version": "1.0.0", + "name": "ssh-key-action", + "version": "1.1.0", "private": true, - "description": "Install SSH key to .ssh for GitHub Actions", + "description": "Install SSH key to .ssh", "main": "lib/main.js", "engines": { "node": ">= 8.0.0", @@ -14,7 +14,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/shimataro/action-install-ssh-key.git" + "url": "git+https://github.com/shimataro/ssh-key-action.git" }, "keywords": [ "actions", @@ -26,7 +26,7 @@ "author": "shimataro", "license": "MIT", "dependencies": { - "@actions/core": "1.1.0", + "@actions/core": "1.1.1", "@actions/github": "1.1.0", "@actions/io": "1.0.1", "@actions/tool-cache": "1.1.1"