Skip to content

Commit 1b26047

Browse files
committed
add outputs
1 parent b9da7a8 commit 1b26047

File tree

6 files changed

+8
-3
lines changed

6 files changed

+8
-3
lines changed

__fixtures__/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ export const setFailed = jest.fn<typeof core.setFailed>();
1111
export const warning = jest.fn<typeof core.warning>();
1212
export const startGroup = jest.fn<typeof core.startGroup>();
1313
export const endGroup = jest.fn<typeof core.endGroup>();
14-
export const isDebug = jest.fn<typeof core.isDebug>();
14+
export const isDebug = jest.fn<typeof core.isDebug>();

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ inputs:
3535

3636
# Define your outputs here.
3737
outputs:
38+
missedFiles:
39+
description:
40+
The files that are not covered by the CODEOWNERS file, separated by a \n.
3841

3942
runs:
4043
using: node20

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

dist/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export const runAction = async (input: Input): Promise<void> => {
116116
`${missedFiles.length}/${filesToCheck.length} files not covered in CODEOWNERS`,
117117
);
118118
}
119+
core.setOutput('missedFiles', missedFiles.join('\n'));
119120
if (input.allRulesMustHit) {
120121
const unusedRules = rulesResult.filter(({ filtes }) => filtes.length === 0);
121122
if (unusedRules.length > 0) {

0 commit comments

Comments
 (0)