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
Merge branch 'dependabot/github_actions/super-linter/super-linter-8.6.0' of https://github.com/PSModule/GitHub-Script into dependabot/github_actions/super-linter/super-linter-8.6.0
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ To get started with your own GitHub PowerShell based action, [create a new repos
24
24
|`ShowInfo`| Show information about the environment. | false |`'true'`|
25
25
|`ShowInit`| Show information about the initialization. | false |`'false'`|
26
26
|`ShowOutput`| Show the script's output. | false |`'false'`|
27
+
|`ShowRateLimit`| Show GitHub API rate limit information before and after script execution. | false |`'false'`|
27
28
|`WorkingDirectory`| The working directory where the script runs. | false |`'.'`|
28
29
|`PreserveCredentials`| Preserve credentials after script execution. If false, disconnects GitHub contexts and CLI using Disconnect-GitHubAccount. | false |`'true'`|
29
30
@@ -243,3 +244,16 @@ Runs a script with `PreserveCredentials` set to `false` to automatically disconn
243
244
Get-GitHubUser
244
245
# Credentials will be disconnected after this step
245
246
```
247
+
248
+
#### Example 8: Show GitHub API rate limit usage
249
+
250
+
Displays the GitHub API rate limit status before and after the script runs. The **Rate Limits** log group shows `Limit`, `Used`, `Remaining`, `ResetsAt`, and `ResetsIn` for every resource category (`core`, `search`, `graphql`, etc.), making it easy to see exactly how many API calls a workflow step consumed.
Copy file name to clipboardExpand all lines: action.yml
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,10 @@ inputs:
53
53
description: Show the output of the script.
54
54
required: false
55
55
default: 'false'
56
+
ShowRateLimit:
57
+
description: Show GitHub API rate limit information before and after script execution.
58
+
required: false
59
+
default: 'false'
56
60
ErrorView:
57
61
description: Configure the PowerShell `$ErrorView` variable. You can use full names ('NormalView', 'CategoryView', 'ConciseView', 'DetailedView'). It matches on partials.
0 commit comments