Skip to content

Commit 73e1349

Browse files
committed
feat: testing using typescript output when commenting on PRs
1 parent d251cf4 commit 73e1349

File tree

4 files changed

+35
-4
lines changed

4 files changed

+35
-4
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
- With GitHub **Markdown** :sparkles:
7474
- Created by [create-or-update-comment][1]
7575
- and testing openapi diff
76-
76+
${{ steps.test-action.outputs.stdout }}
7777
[1]: https://github.com/peter-evans/create-or-update-comment
7878
reactions: '+1'
7979

dist/index.js

+16-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

+17-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { wait } from './wait'
77
*/
88
export async function run(): Promise<void> {
99
try {
10-
console.log('Hello World')
1110
const ms: string = core.getInput('milliseconds')
1211

1312
// Debug logs are only output if the `ACTIONS_STEP_DEBUG` secret is true
@@ -20,6 +19,23 @@ export async function run(): Promise<void> {
2019

2120
// Set outputs for other workflow steps to use
2221
core.setOutput('time', new Date().toTimeString())
22+
23+
console.log(`
24+
This is a multi-line string
25+
26+
# API Differences
27+
28+
## ADDED
29+
---
30+
31+
32+
## MODIFIED
33+
---
34+
35+
36+
## DELETED
37+
---
38+
`)
2339
} catch (error) {
2440
// Fail the workflow run if an error occurs
2541
if (error instanceof Error) core.setFailed(error.message)

0 commit comments

Comments
 (0)