-
Notifications
You must be signed in to change notification settings - Fork 324
32 lines (27 loc) · 944 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
30
31
32
# Update subscription links
name: Daily Update
on:
# Runs every 8 hours
schedule:
- cron: '0 */8 * * *'
# Manual updates
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
# Checks out the repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v3
- name: Update Links & Combine Configs
# Condition to prevent unintended automatic workflow
# Change or comment out this line for automatic workflow on forks
if: github.repository == 'williamstar007/clashx-v2ray-topfreeproxy'
run: |
echo "$(date '+%Y-%m-%d %H:%M:%S')" > combine/.timestamp
python .github/workflows/update.py
# python combine/combine.py
git config --global user.name "GitHub Action"
git config --global user.email "[email protected]"
git add .
git commit -m "updates"
git push