Skip to content

Commit

Permalink
fail fast on github rate limit (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
toelke committed Sep 6, 2022
1 parent 97446b2 commit 5bd9c67
Show file tree
Hide file tree
Showing 5 changed files with 239 additions and 130 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ Install any kustomize version as a step in your workflow

Every argument is optional.

| Input | Description |
| ------------------- | ------------------------------------------------------------------------------------------------------ |
| `github-token` | PAT (Personal Access Token) for authorizing the repository.<br>_Defaults to **\${{ github.token }}**_ |
| `kustomize-version` | Semver of kustomize to use. Examples: `10.x`, `10.15.1`, `>=10.15.0`<br>_Defaults to **\***_ |
| Input | Description |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `github-token` | PAT (Personal Access Token) for authorizing the repository.<br>_Defaults to **\${{ github.token }}**_ |
| `kustomize-version` | Semver of kustomize to use. Examples: `10.x`, `10.15.1`, `>=10.15.0`<br>_Defaults to **\***_ |
| `fail-fast` | When github rate limits us, fail immediately or retry after the timeout that github wishes from us? Note: When setting this to `false` (which is the default!), a github workflow might accrue a long (and possibly expensive) runtime. |

## Usage

Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ inputs:
description: 'Token for the repository. Can be passed in using `{{ secrets.GITHUB_TOKEN }}`.'
required: false
default: ${{ github.token }}
fail-fast:
description: 'Fail quickly on github rate limit. "false" or "true".'
required: false
default: 'false'
runs:
using: 'node12'
main: 'dist/index.js'
Loading

0 comments on commit 5bd9c67

Please sign in to comment.