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
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,23 @@ jobs:
48
48
skip-labels: "wip,do-not-merge"
49
49
```
50
50
51
+
### Enqueue Retry Options
52
+
53
+
Sometimes, the pull request check runs haven't finished yet, so the action will retry the enqueue after some time. You can control this behavior with the following options:
54
+
55
+
- `enqueue-retries`: Number of times to retry enqueuing if it fails. Default is 6. Set to 0 to disable retry logic.
56
+
- `enqueue-retry-sleep`: Time (in milliseconds) to sleep between retries. Default is 5000 (5 seconds). Set to 0 to disable sleeping between retries.
57
+
58
+
Example usage:
59
+
60
+
```yaml
61
+
- uses: waheedahmed/enqueue-pullrequest@v1
62
+
with:
63
+
github-token: ${{ secrets.GITHUB_TOKEN }}
64
+
enqueue-retries: 8
65
+
enqueue-retry-sleep: 7000
66
+
```
67
+
51
68
Then add the `enqueue-pullrequest` label to any PR you want automatically enqueued once it's ready.
52
69
53
70
To process only PRs from a specific branch (useful for `schedule` or `workflow_dispatch` triggers), set `branch`:
@@ -80,6 +97,8 @@ To enqueue **all** open PRs without requiring a label, set `label` to an empty s
80
97
| `base-branches` | Comma-separated list of allowed base branches. Empty = all branches. | `""` |
0 commit comments