Update lib/main.js
Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com>
This commit is contained in:
+3
-3
@@ -26,9 +26,9 @@ export async function main(
|
||||
skipTokenRevoke,
|
||||
|
||||
) {
|
||||
// Validate mutual exclusivity of enterprise with owner/repositories
|
||||
if (enterprise && (owner || repositories.length > 0)) {
|
||||
throw new Error("Cannot use 'enterprise' input with 'owner' or 'repositories' inputs");
|
||||
// Validate mutual exclusivity of enterprise-slug with owner/repositories
|
||||
if (enterpriseSlug && (owner || repositories.length > 0)) {
|
||||
throw new Error("Cannot use 'enterprise-slug' input with 'owner' or 'repositories' inputs");
|
||||
}
|
||||
|
||||
let parsedOwner = "";
|
||||
|
||||
Reference in New Issue
Block a user