Skip to content

Commit

Permalink
Update modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mh4647 committed Feb 5, 2024
1 parent 2c2b21f commit 962ccc8
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actionTest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
uses: actions/checkout@v4

- name: Replace string value
uses: mh4647/[email protected].11
uses: mh4647/[email protected].12
with:
files: 'test/replace.txt'
replacements: '%NAME%=Boaz'
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
./node_modules/
node_modules/
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('=')
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 962ccc8

Please sign in to comment.