From 8c4a6ebd3d1713047e6216823960cfef6c7bf383 Mon Sep 17 00:00:00 2001 From: Ian Jennings Date: Mon, 22 Apr 2024 17:41:35 -0500 Subject: [PATCH 1/7] include version in logs --- dist/index.js | 3 ++- src/index.js | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 7d2db1e..80370f8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -33637,6 +33637,7 @@ class Config { this.input = { prompt: core.getInput("prompt"), prerun: core.getInput("prerun"), + version: core.getInput("version"), gh_token: core.getInput("gh_token"), }; @@ -40150,4 +40151,4 @@ const waitFor = (ms) => new Promise((r) => setTimeout(r, ms)); module.exports = __webpack_exports__; /******/ })() -; \ No newline at end of file +; diff --git a/src/index.js b/src/index.js index 337157d..de035aa 100644 --- a/src/index.js +++ b/src/index.js @@ -28,6 +28,11 @@ const waitFor = (ms) => new Promise((r) => setTimeout(r, ms)); : config.githubContext.owner + "/" + config.githubContext.repo; const branch = process.env.IS_DEV ? "main" : config.githubContext.branch; + let prerun = config.input.prerun; + let version = config.input.version; + + console.log(chalk.green("TestDriver:"), `"Version ${version}"`); + console.log(chalk.green("TestDriver:"), '"Looking into it..."'); console.log(chalk.green("TestDriver:"), '"I can help ya test that!"'); @@ -38,12 +43,10 @@ const waitFor = (ms) => new Promise((r) => setTimeout(r, ms)); }); - let prerun = config.input.prerun; - let version = config.input.version; const personalAccessToken = process.env.GITHUB_TOKEN; - console.log(chalk.green("TestDriver:"), '"Starting my engine..."'); + console.log(chalk.green("TestDriver:"), '"Starting my engine..."');mm const { data: { dispatchId }, From 18b166ac09a78c98a4dd310cdb2e1dfcefb2fa27 Mon Sep 17 00:00:00 2001 From: Ian Jennings Date: Mon, 22 Apr 2024 17:42:21 -0500 Subject: [PATCH 2/7] use latest version --- .github/workflows/pr.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index ac40643..64d66f2 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -12,6 +12,7 @@ jobs: uses: actions/checkout@v3 - uses: ./ with: + version: v2.6.0 prompt: | 1. open youtube. 2. find a cat video From 0d0592ef7a2ea9fef6169927ec303862706e8de8 Mon Sep 17 00:00:00 2001 From: Ian Jennings Date: Mon, 22 Apr 2024 17:44:44 -0500 Subject: [PATCH 3/7] package --- dist/index.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dist/index.js b/dist/index.js index 80370f8..c14f5c2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -33637,7 +33637,6 @@ class Config { this.input = { prompt: core.getInput("prompt"), prerun: core.getInput("prerun"), - version: core.getInput("version"), gh_token: core.getInput("gh_token"), }; @@ -39984,6 +39983,11 @@ const waitFor = (ms) => new Promise((r) => setTimeout(r, ms)); : config.githubContext.owner + "/" + config.githubContext.repo; const branch = process.env.IS_DEV ? "main" : config.githubContext.branch; + let prerun = config.input.prerun; + let version = config.input.version; + + console.log(chalk.green("TestDriver:"), `"Version ${version}"`); + console.log(chalk.green("TestDriver:"), '"Looking into it..."'); console.log(chalk.green("TestDriver:"), '"I can help ya test that!"'); @@ -39994,12 +39998,10 @@ const waitFor = (ms) => new Promise((r) => setTimeout(r, ms)); }); - let prerun = config.input.prerun; - let version = config.input.version; const personalAccessToken = process.env.GITHUB_TOKEN; - console.log(chalk.green("TestDriver:"), '"Starting my engine..."'); + console.log(chalk.green("TestDriver:"), '"Starting my engine..."');mm const { data: { dispatchId }, @@ -40151,4 +40153,4 @@ const waitFor = (ms) => new Promise((r) => setTimeout(r, ms)); module.exports = __webpack_exports__; /******/ })() -; +; \ No newline at end of file From 43799f351628741d68a4b6d13ff1dd1a89bceaae Mon Sep 17 00:00:00 2001 From: Ian Jennings Date: Mon, 22 Apr 2024 17:45:23 -0500 Subject: [PATCH 4/7] remove stray chars --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index de035aa..56656d9 100644 --- a/src/index.js +++ b/src/index.js @@ -46,7 +46,7 @@ const waitFor = (ms) => new Promise((r) => setTimeout(r, ms)); const personalAccessToken = process.env.GITHUB_TOKEN; - console.log(chalk.green("TestDriver:"), '"Starting my engine..."');mm + console.log(chalk.green("TestDriver:"), '"Starting my engine..."'); const { data: { dispatchId }, From a25ef32e8df07de2bf795b9bfb27e7a1e683b3fc Mon Sep 17 00:00:00 2001 From: Ian Jennings Date: Mon, 22 Apr 2024 17:45:47 -0500 Subject: [PATCH 5/7] compile --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index c14f5c2..77e65f0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -40001,7 +40001,7 @@ const waitFor = (ms) => new Promise((r) => setTimeout(r, ms)); const personalAccessToken = process.env.GITHUB_TOKEN; - console.log(chalk.green("TestDriver:"), '"Starting my engine..."');mm + console.log(chalk.green("TestDriver:"), '"Starting my engine..."'); const { data: { dispatchId }, From 6b513a743f23fa2026f310ab60b80a2928fb5455 Mon Sep 17 00:00:00 2001 From: Ian Jennings Date: Mon, 22 Apr 2024 17:46:35 -0500 Subject: [PATCH 6/7] compile --- src/config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.js b/src/config.js index 29b140a..1bd42ae 100644 --- a/src/config.js +++ b/src/config.js @@ -7,6 +7,7 @@ class Config { prompt: core.getInput("prompt"), prerun: core.getInput("prerun"), gh_token: core.getInput("gh_token"), + version: core.getInput("version"), }; // the values of github.context.repo.owner and github.context.repo.repo are taken from From 1a996a39a4d22563b8dbfb00c03bcf1419c0b38e Mon Sep 17 00:00:00 2001 From: Ian Jennings Date: Mon, 22 Apr 2024 17:46:42 -0500 Subject: [PATCH 7/7] compile --- dist/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/index.js b/dist/index.js index 77e65f0..49e571d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -33638,6 +33638,7 @@ class Config { prompt: core.getInput("prompt"), prerun: core.getInput("prerun"), gh_token: core.getInput("gh_token"), + version: core.getInput("version"), }; // the values of github.context.repo.owner and github.context.repo.repo are taken from