-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (45 loc) · 1.27 KB
/
Mirror.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Starting Mirroring
on:
# release:
# types: [published]
# push:
# branches:
# - master
# paths:
# - '.config'
# schedule:
# - cron: 0 8 * * 5
watch:
types: [started]
env:
DURL: https://bigota.d.miui.com/V11.0.3.0.PEIMIXM/miui_HMNote5Global_V11.0.3.0.PEIMIXM_ff4c5a6b1a_9.0.zip
TZ: Asia/Kolkata
MIR: bit
EXT: zip
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Clean Up
run: |
docker rmi `docker images -q`
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d
sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* php*
sudo -E apt-get update
sudo -E apt-get -y autoremove --purge
sudo -E apt-get clean
- name: Initializing environment
run: |
sudo -E apt-get -qq update
sudo -E apt-get -qq install aria2 curl wget
- name: Download time
run: |
aria2c $DURL
- name: Download transfer
run: |
curl -sL https://git.io/file-transfer | sh
- name: its upload time
run: |
./transfer $MIR *.$EXT