From 962ccc8d3c5749ce5a819fcbae04deb213a18f0c Mon Sep 17 00:00:00 2001 From: mh4647 <92085925+mh4647@users.noreply.github.com> Date: Mon, 5 Feb 2024 11:01:04 +0200 Subject: [PATCH] Update modules --- .github/workflows/actionTest.yaml | 2 +- .gitignore | 2 +- README.md | 7 +++++++ dist/index.js | 4 ++-- index.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 7 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/actionTest.yaml b/.github/workflows/actionTest.yaml index b114185..d3dbd22 100644 --- a/.github/workflows/actionTest.yaml +++ b/.github/workflows/actionTest.yaml @@ -10,7 +10,7 @@ jobs: uses: actions/checkout@v4 - name: Replace string value - uses: mh4647/replace-action-z@V2.0.11 + uses: mh4647/replace-action-z@V2.0.12 with: files: 'test/replace.txt' replacements: '%NAME%=Boaz' diff --git a/.gitignore b/.gitignore index ad90fc2..40b878d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -./node_modules/ \ No newline at end of file +node_modules/ \ No newline at end of file diff --git a/README.md b/README.md index 09146d8..b5ad75d 100644 --- a/README.md +++ b/README.md @@ -77,3 +77,10 @@ The scripts and documentation in this project are released under the [MIT Licens This is a fork from https://github.com/datamonsters/replace-action. I created this action becasue the the old repository doesn't get updated for 3 years. + + +# Update Version +$ npm install @actions/core +$ npm install @actions/github +$ ncc build index.js --license licenses.txt +$ npm i --package-lock-only \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 61a3dd6..de8d5f9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -26597,12 +26597,12 @@ try { for (let fi = 0; fi < filenames.length; fi++) { const filename = filenames[fi]; const fs = __nccwpck_require__(7147); - console.log(`file1: ${fi}`); + console.log(`file1: ${fi} filename ${filename}`); fs.readFile(filename, "utf8", function (err, data) { if (err) { console.log(err); } else { - const result = data; + let result = data; console.log(data); for (let i = 0; i < vars.length; i++) { const kv = vars[i].split('=') diff --git a/index.js b/index.js index b0cbe70..15727d4 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ try { for (let fi = 0; fi < filenames.length; fi++) { const filename = filenames[fi]; const fs = require("fs"); - console.log(`file1: ${fi}`); + console.log(`file1: ${fi} filename ${filename}`); fs.readFile(filename, "utf8", function (err, data) { if (err) { console.log(err); diff --git a/package-lock.json b/package-lock.json index d591955..66f3eb4 100755 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hello-world-javascript-action", - "version": "2.0.8", + "version": "2.0.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hello-world-javascript-action", - "version": "2.0.8", + "version": "2.0.12", "license": "ISC", "dependencies": { "@actions/core": "^1.10.1", diff --git a/package.json b/package.json index 0e2f2b6..cb0f73e 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hello-world-javascript-action", - "version": "2.0.10", + "version": "2.0.12", "description": "This action prints \"Hello World\" or \"Hello\" + the name of a person to greet to the log.", "main": "dist/index.js", "scripts": {