You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,8 @@ A GitHub Action to roughly calculate DORA deployment frequency. This is not mean
23
23
-`actions-token`: optional, string, defaults to ''. Can be set with `${{ secrets.GITHUB_TOKEN }}` in the action
24
24
-`app-id`: optional, string, defaults to '', application id of the registered GitHub app
25
25
-`app-install-id`: optional, string, defaults to '', id of the installed instance of the GitHub app
26
-
-`app-private-key` optional, string, defaults to '', private key which has been generated for the installed instance of the GitHub app. Must be provided without leading `'-----BEGIN RSA PRIVATE KEY----- '` and trailing `' -----END RSA PRIVATE KEY-----'`.
26
+
-`app-private-key`: optional, string, defaults to '', private key which has been generated for the installed instance of the GitHub app. Must be provided without leading `'-----BEGIN RSA PRIVATE KEY----- '` and trailing `' -----END RSA PRIVATE KEY-----'`.
27
+
-`show-verbose-logging`: optional, bool, defaults to 0, if set to 1, will show more verbose logging information
27
28
28
29
To test the current repo (same as where the action runs)
29
30
```
@@ -85,4 +86,4 @@ Number of days: 30
85
86
Authentication detected: GITHUB APP TOKEN
86
87
Rate limit consumption: 10 / 5000
87
88
Deployment frequency over last 30 days, is 1.2 per day, with a DORA rating of 'Elite'
#Write-Output "'$($workflow.name)' matched with $arrayItem"
70
-
$result=$workflowIds.Add($workflow.id)
71
-
if ($result-lt0)
76
+
#This looks odd: but assigning to a (throwaway) variable stops the index of the arraylist being output to the console. Using an arraylist over an array has advantages making this worth it for here
77
+
if (!$workflowIds.Contains($workflow.id))
72
78
{
73
-
Write-Output"unexpected result"
79
+
$result=$workflowIds.Add($workflow.id)
80
+
}
81
+
if (!$workflowNames.Contains($workflow.name))
82
+
{
83
+
$result=$workflowNames.Add($workflow.name)
74
84
}
75
85
}
76
-
else
77
-
{
78
-
#Write-Output "'$($workflow.name)' DID NOT match with $arrayItem"
79
-
}
86
+
#else
87
+
#{
88
+
#Write-Output "'$($workflow.name)' DID NOT match with $arrayItem"
89
+
#}
80
90
}
81
91
}
82
92
@@ -149,8 +159,10 @@ function Main ([string] $ownerRepo,
149
159
{
150
160
$rateLimitResponse=Invoke-RestMethod-Uri $uri3-ContentType application/json -Method Get -Headers @{Authorization=($authHeader["Authorization"])} -SkipHttpErrorCheck -StatusCodeVariable "HTTPStatus"
0 commit comments