Commit 9f8b36d
committed
CI: prevent redundant translation sync runs and enforce 30-minute gap
- Add concurrency control to prevent overlapping runs
- Cancel in-progress runs when new one is triggered
- Enforce minimum 30-minute gap between syncs (not fixed delay)
- Check last commit time on i18n_sync branch
- Calculate remaining wait time dynamically
- Proceed immediately if >= 30 minutes have passed
- Add defensive guard against negative sleep values
- Improve log clarity by showing elapsed time in seconds
- Update timeout from 20 to 50 minutes
- Fix action versions to v4 (checkout and setup-node)1 parent e552265 commit 9f8b36d
1 file changed
+45
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
13 | | - | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | | - | |
| 22 | + | |
17 | 23 | | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
22 | 64 | | |
23 | 65 | | |
24 | 66 | | |
| |||
32 | 74 | | |
33 | 75 | | |
34 | 76 | | |
35 | | - | |
| 77 | + | |
36 | 78 | | |
37 | 79 | | |
38 | 80 | | |
| |||
0 commit comments