-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (29 loc) · 948 Bytes
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Daily Proxies Update
on:
# Run every 8 hours
schedule:
- cron: '0 */8 * * *'
# Run when manually triggered
workflow_dispatch:
jobs:
update_proxies:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Update Proxies
# Condition to prevent unintended automatic workflow
# Change or comment out this line for automatic workflow on forks
if: github.repository == 'oezeb/cypher-connect'
run: |
python3 .github/workflows/update_proxies.py
- name: Commit and Push
# Condition to prevent unintended automatic workflow
# Change or comment out this line for automatic workflow on forks
if: github.repository == 'oezeb/cypher-connect'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update proxies"
git push