Merge pull request #1402 from actions/fix-enterprise-exclusions
Fix some workflows not being excluded from Enterprise syncing.
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
"creator": "Detekt",
|
||||
"description": "Static code analysis for Kotlin",
|
||||
"iconName": "detekt",
|
||||
"categories": ["Code Scanning", "Kotlin"]
|
||||
"categories": ["Code Scanning", "Kotlin"],
|
||||
"enterprise": false
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,8 @@ interface WorkflowProperties {
|
||||
categories: string[] | null;
|
||||
|
||||
creator?: string;
|
||||
|
||||
enterprise?: boolean;
|
||||
}
|
||||
|
||||
interface WorkflowsCheckResult {
|
||||
@@ -59,6 +61,7 @@ async function checkWorkflows(
|
||||
|
||||
const enabled =
|
||||
!isPartnerWorkflow &&
|
||||
workflowProperties.enterprise !== false &&
|
||||
(await checkWorkflow(workflowFilePath, enabledActions));
|
||||
|
||||
const workflowDesc: WorkflowDesc = {
|
||||
|
||||
Reference in New Issue
Block a user