-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 818 Bytes
/
update.yml
File metadata and controls
31 lines (27 loc) · 818 Bytes
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
name: Update IVPN Data
on:
schedule:
- cron: '*/10 * * * *' # Run every 10 minutes
workflow_dispatch: # Allow manual trigger
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Download latest lists
run: bash ivpn.sh > Readme.md
- name: Force add and commit
run: |
git config --local user.email "scriptzteam@gmail.com"
git config --local user.name "scriptzteam"
git add -f Readme.md
git status
if git status --porcelain | grep -q '^?? \|^A \|^M '; then
echo "Changes detected, committing..."
git commit -m "Update"
git push
else
echo "No changes to commit"
fi