From 933fd073d9d1cd747490052a41748d697297faf2 Mon Sep 17 00:00:00 2001 From: tommy-anderson Date: Fri, 27 Aug 2021 16:21:52 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=20Rename=20everything=20to=20WebAp?= =?UTF-8?q?pIO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +++-- action.yml | 20 ++++++++++---------- index.js | 2 +- package-lock.json | 2 +- package.json | 10 +++++----- 5 files changed, 20 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 97645bd..ba90a99 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ -# layerCI-GHAction -This action sends a post request to the layerCI webhook +# WebAppIO-GHAction + +This action sends a post request to the WebAppIo webhook diff --git a/action.yml b/action.yml index 4e5492d..2af823c 100644 --- a/action.yml +++ b/action.yml @@ -1,24 +1,24 @@ -name: 'LayerCI-Webhook' -description: 'Manually start a pipeline in LayerCI' +name: "WebAppIO-Webhook" +description: "Manually start a pipeline in WebAppIO" inputs: apiKey: - description: 'LayerCI API Key' + description: "API Key" required: true repoName: - description: 'repository name' + description: "repository name" required: true - apiExtra: + apiExtra: description: :'some extra data exposed as API_EXTRA variable' required: true buttons: - description: 'whether to automatically accept any BUTTON instructions in the job' + description: "whether to automatically accept any BUTTON instructions in the job" required: true branch: - description: 'branch' + description: "branch" required: true ref: - description: 'SHA of commit to checkout' + description: "SHA of commit to checkout" required: true runs: - using: 'node12' - main: 'index.js' \ No newline at end of file + using: "node12" + main: "index.js" diff --git a/index.js b/index.js index ff9adc5..b69bcaf 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ try { const branch = core.getInput('branch') const ref = core.getInput('ref') - const url = `https://layerci.com/api/v1/run/${repoName}?layertoken=${apiKey}` + const url = `https://webappio.com/api/v1/run/${repoName}?token=${apiKey}` const payload = { method: "POST", diff --git a/package-lock.json b/package-lock.json index 715a832..da44b34 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "layerci-ghaction", + "name": "webappio-ghaction", "version": "1.0.0", "lockfileVersion": 1, "requires": true, diff --git a/package.json b/package.json index dfdec46..e6ee369 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,21 @@ { - "name": "layerci-ghaction", + "name": "WebAppIO-ghaction", "version": "1.0.0", - "description": "This action sends a post request to the layerCI webhook", + "description": "This action sends a post request to the WebAppIO webhook", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", - "url": "git+https://github.com/tommy-anderson/layerCI-GHAction.git" + "url": "git+https://github.com/tommy-anderson/WebAppIO-GHAction.git" }, "author": "", "license": "ISC", "bugs": { - "url": "https://github.com/tommy-anderson/layerCI-GHAction/issues" + "url": "https://github.com/tommy-anderson/WebAppIO-GHAction/issues" }, - "homepage": "https://github.com/tommy-anderson/layerCI-GHAction#readme", + "homepage": "https://github.com/tommy-anderson/WebAppIO-GHAction#readme", "dependencies": { "@actions/core": "^1.2.7", "@actions/github": "^4.0.0",