From 151b69294956c246c7ab4ef9e711a43dd9231612 Mon Sep 17 00:00:00 2001 From: Dagen Brock Date: Thu, 5 Mar 2020 11:43:06 -0600 Subject: [PATCH] fix documentation and branding for release --- .gitignore | 2 ++ README.md | 4 ++-- action.yml | 7 +++++-- dist/index.js | 3 +-- package-lock.json | 2 +- package.json | 2 +- src/index.ts | 3 +-- 7 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index a56a7ef..465556a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ node_modules +ProDOS* +PRODOS* diff --git a/README.md b/README.md index 9002dc8..d5b7673 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# cadius-action +# install-cadius-action A Github Action for installing Cadius and allowing you to manipulate ProDOS disk images with it. @@ -6,7 +6,7 @@ A Github Action for installing Cadius and allowing you to manipulate ProDOS disk ``` # This will install Cadius on your Github Runner machine - name: Install Cadius - uses: digarok/cadius-action@node + uses: digarok/install-cadius-action@master with: include_prodos: true diff --git a/action.yml b/action.yml index 63874b7..bba6f17 100644 --- a/action.yml +++ b/action.yml @@ -1,4 +1,4 @@ -name: 'cadius-action' +name: 'install-cadius-action' description: 'Github Action to set up Cadius for ProDOS disk image manipulation' author: 'Dagen Brock' inputs: @@ -7,4 +7,7 @@ inputs: default: 'true' runs: using: 'node12' - main: 'dist/index.js' \ No newline at end of file + main: 'dist/index.js' +branding: + icon: 'save' + color: 'blue' diff --git a/dist/index.js b/dist/index.js index e7ad2ff..a1cc02f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -846,7 +846,6 @@ function downloadProdos(cadiusPath) { } console.log(util.format("Downloaded file: ", d2pDownloadPath)); try { - const spawn = __webpack_require__(129).spawn; const spawnSync = __webpack_require__(129).spawnSync; spawnSync('python3', [d2pDownloadPath, p8DskPath]); const cadiusProcess = spawnSync(cadiusExe, ['extractvolume', 'ProDOS_2_4_2.po', '.'], { encoding: 'utf8' }); @@ -854,7 +853,7 @@ function downloadProdos(cadiusPath) { } catch (exception) { console.log(exception); - console.log("Unagle to complete ProDOS download and extraction."); + console.log("Unable to complete ProDOS download and extraction."); } }); } diff --git a/package-lock.json b/package-lock.json index 9037b90..518c9df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "cadius-action", + "name": "install-cadius-action", "version": "0.0.0", "lockfileVersion": 1, "requires": true, diff --git a/package.json b/package.json index b063257..7e0c914 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "cadius-action", + "name": "install-cadius-action", "version": "0.0.0", "license": "MIT", "main": "dist/index.js", diff --git a/src/index.ts b/src/index.ts index b615965..2220c0d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -69,7 +69,6 @@ async function downloadProdos(cadiusPath: string) { // Now we need to a) convert the image and b) extract the volume file locally try { - const spawn = require("child_process").spawn; const spawnSync = require("child_process").spawnSync; spawnSync('python3',[d2pDownloadPath, p8DskPath]); @@ -77,7 +76,7 @@ async function downloadProdos(cadiusPath: string) { console.log(cadiusProcess.stdout); } catch (exception) { console.log(exception); - console.log("Unagle to complete ProDOS download and extraction."); + console.log("Unable to complete ProDOS download and extraction."); } }