-
Notifications
You must be signed in to change notification settings - Fork 19
34 lines (34 loc) · 1.1 KB
/
sync.yaml
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
33
34
name: RClone Sync
on:
workflow_dispatch:
schedule:
- cron: '30 6 * * *'
jobs:
run-sync-service:
runs-on: ubuntu-latest
steps:
- name: Install RClone
run: |
wget https://github.com/dogbutcat/gclone/releases/download/v1.57.0-mod1.4.0/gclone-v1.57.0-mod1.4.0-linux-amd64.zip
unzip gclone-v1.57.0-mod1.4.0-linux-amd64.zip
chmod +x gclone-v1.57.0-mod1.4.0-linux-amd64/gclone
sudo mv gclone-v1.57.0-mod1.4.0-linux-amd64/gclone /usr/bin/rclone
rclone help
- name: Checkout repository code
uses: actions/checkout@v2
- name: Downloading config file
run: |
wget ${{ secrets.CONF_URL }} -O rclone.conf
- name: Downloading SA Accounts Zip (optional)
env:
SA_ZIP: ${{ secrets.SA_ZIP }}
if: "${{ env.SA_ZIP != '' }}"
run: |
wget -qq ${{ secrets.SA_ZIP }} -O accounts.zip
unzip -qq accounts.zip
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- name: Start sync
run: |
python3 sync.py