Skip to content

Commit f68895b

Browse files
add throttling and automatic retries to octokit
make retry_mode default to true make octokit instance shared between asynchronous tasks
1 parent 5ca33e3 commit f68895b

11 files changed

+5289
-2795
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on Keep a Changelog, and this project adheres to Semantic Ve
66

77
---
88

9+
## 3.2 - 01/12/2021
10+
* Added Option `RETRY_MODE`
11+
912
## 3.1 - 11/02/2021
1013
* Added Option `SKIP_CI` [#6](https://github.com/varunsridharan/action-github-workflow-sync/issues/6)
1114
* Added Option `COMMIT_MESSAGE` to provide custom message by end user [#6](https://github.com/varunsridharan/action-github-workflow-sync/issues/6)
@@ -40,4 +43,4 @@ The format is based on Keep a Changelog, and this project adheres to Semantic Ve
4043
* Improved performance by migrating to ***Alpine Linux***
4144

4245
## 1.0 - 25/06/2020
43-
### First Release
46+
### First Release

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ This also isn't limited to Github Action yaml files - another use case could be
2929
| `PULL_REQUEST` | **false** | Set to `true` if you want the changes to be pushed via pull request. |
3030
| `SKIP_CI` | **false** | Set to `true` if you want skip all automations inside target repository. |
3131
| `COMMIT_MESSAGE` | **false** | You can provide your custom commit message. |
32+
| `RETRY_MODE` | **true** | Enable retry and throttling octokit plugins to avoid secondary rate limits on github content creation. |
3233

3334
### Personal Access Token Scope
3435
#### [Github Personal Token](https://github.com/settings/tokens/new?description=gh-workflow-sync) <small> Is required with the below scope </small>

action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ inputs:
4848
description: "Provide your own custom commit MESSAGE"
4949
required: false
5050
default: 'false'
51+
RETRY_MODE:
52+
description: "Enable retry and throttling octokit plugins to avoid secondary rate limits on github content creation"
53+
required: false
54+
default: 'true'
5155

5256
runs:
5357
using: 'node12'

0 commit comments

Comments
 (0)