Skip to content

Commit 367bee7

Browse files
authored
Refactor CI for forked repositories - Fix optional inputs (#105)
1 parent 603aa3a commit 367bee7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/actions/reports-group/codacy-uploader/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ runs:
3535
'Validate inputs',
3636
async () => Object.entries(JSON.parse(process.env.INPUT_MAP))
3737
.forEach(([key, val]) => {
38-
if (!val.trim()) { throw new Error(`Input required and not supplied: ${name}`); }
38+
if (!val.trim()) { throw new Error(`Input required and not supplied: ${key}`); }
3939
})
4040
);
4141

.github/actions/reports-group/codecov-uploader/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ runs:
8484
'Validate inputs',
8585
async () => Object.entries(JSON.parse(process.env.INPUT_MAP))
8686
.forEach(([key, val]) => {
87-
if (!val.trim()) { throw new Error(`Input required and not supplied: ${name}`); }
87+
if (!key.startsWith('override-') && !val.trim()) {
88+
throw new Error(`Input required and not supplied: ${key}`);
89+
}
8890
})
8991
);
9092

0 commit comments

Comments
 (0)