mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
Follow up from https://github.com/garronej/github_actions_toolkit
This commit is contained in:
commit
5297ab00ab
54 changed files with 18162 additions and 0 deletions
17
src/test/string_replace.ts
Normal file
17
src/test/string_replace.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
import { action } from "../string_replace";
|
||||
import * as st from "scripting-tools";
|
||||
|
||||
(async () => {
|
||||
|
||||
const { replace_result } = await action("string_replace", {
|
||||
"input_string": "octo-computing-machine",
|
||||
"search_value": "-",
|
||||
"replace_value": "_"
|
||||
},
|
||||
{ "debug": console.log }
|
||||
);
|
||||
|
||||
console.log({ replace_result });
|
||||
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue