We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d58d173 commit a5c24ccCopy full SHA for a5c24cc
.github/workflows/sync-endpoint.yml
@@ -1,7 +1,7 @@
1
name: Sync Endpoint
2
on:
3
schedule:
4
- - cron: '0 22 * * *'
+ - cron: '* */24 * * *'
5
6
jobs:
7
sync-to-hub:
sync/sync.py
@@ -13,7 +13,10 @@
13
with open(file,"r") as f:
14
content=f.read().strip()
15
print('content:', content)
16
- endpointIndex = '1' if content == '0' else '0'
+ index = int(content) + 1
17
+ if index >= len(endpoints):
18
+ index = 0
19
+ endpointIndex = str(index)
20
f.close()
21
except IOError:
22
print("File not accessible")
0 commit comments