Skip to content
This repository was archived by the owner on May 29, 2022. It is now read-only.

Patch 21 #89

Open
wants to merge 60 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
a791e16
Update build_ErfanGSIs.yml
xiaoxindada May 24, 2021
20c89d7
Update build_ErfanGSIs.yml
xiaoxindada May 29, 2021
fd8ccab
Update build_ErfanGSIs.yml
xiaoxindada May 29, 2021
dc73da7
Update build_ErfanGSIs.yml
xiaoxindada May 29, 2021
76db1c1
Update build_ErfanGSIs.yml
xiaoxindada May 29, 2021
3ef5271
Update build_ErfanGSIs.yml
xiaoxindada May 29, 2021
54c4c22
Update build_ErfanGSIs.yml
gifyic Jun 4, 2021
7246c84
Update build_ErfanGSIs.yml
gifyic Jun 4, 2021
1f8e57f
Update build_ErfanGSIs.yml
gifyic Jun 4, 2021
115a018
Update build_ErfanGSIs.yml
gifyic Jun 4, 2021
1241c9a
Update build_ErfanGSIs.yml
gifyic Jun 10, 2021
40ab7d0
Update build_ErfanGSIs.yml
gifyic Jun 10, 2021
911069a
Update build_ErfanGSIs.yml
gifyic Jun 10, 2021
f990f33
Update build_ErfanGSIs.yml
gifyic Jun 23, 2021
79ef1a0
Update build_ErfanGSIs.yml
gifyic Jun 23, 2021
0868ebf
Update build_ErfanGSIs.yml
gifyic Jun 23, 2021
7b741d1
Create Upload
gifyic Jun 23, 2021
7d736fa
Delete Upload
gifyic Jun 23, 2021
0f6c394
Create Upload
gifyic Jun 23, 2021
223edde
Update Upload
gifyic Jun 23, 2021
447424f
Delete Upload
gifyic Jun 23, 2021
8829647
Create Upload
gifyic Jun 23, 2021
4bb3fe2
od
gifyic Jun 23, 2021
c26edd9
Add files via upload
gifyic Jun 23, 2021
5af1ca7
Add files via upload
gifyic Jun 23, 2021
4f67df0
Delete Upload
gifyic Jun 23, 2021
64221e4
Update build_ErfanGSIs.yml
gifyic Jun 23, 2021
281dbd8
Update build_ErfanGSIs.yml
gifyic Jun 23, 2021
291d45f
Update build_ErfanGSIs.yml
gifyic Jun 23, 2021
4628a77
Update build_ErfanGSIs.yml
gifyic Jun 23, 2021
eb1ca06
Update build_ErfanGSIs.yml
gifyic Jun 23, 2021
f758f05
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
5562c9e
Add files via upload
gifyic Jun 24, 2021
2a15f75
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
372404f
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
964cd95
Add files via upload
gifyic Jun 24, 2021
8a869b8
Delete Upload directory
gifyic Jun 24, 2021
d4a3573
Delete auth.json
gifyic Jun 24, 2021
d14b48a
Update E5-Rclone-Actions-Repo.yml
gifyic Jun 24, 2021
ab21918
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
e497c58
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
faa27e5
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
85aa9db
Delete E5-Rclone-Actions-Repo.yml
gifyic Jun 24, 2021
3fb9aa9
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
88efcbf
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
2a1285f
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
3f9fc95
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
8a5d2bc
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
f757a6f
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
965f46f
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
1ca69b7
new rclone config
gifyic Jun 24, 2021
a173e88
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
dbc6a23
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
324ad09
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
1aeb172
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
5215832
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
55660d1
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
7abc2a4
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
26caf8f
Update build_ErfanGSIs.yml
gifyic Jun 24, 2021
e4fd233
Update build_ErfanGSIs.yml
chenhuawen Jun 24, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 44 additions & 16 deletions .github/workflows/build_ErfanGSIs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ on:
types: [started]

env:
ROM_URL: http://bigota.d.miui.com/20.4.27/miui_MIMIX3_20.4.27_8f7879221b_10.0.zip
ROM_NAME: MIUI
ROM_URL: http://download.h2os.com/OnePlus6/MP/OnePlus6Hydrogen_22.K.51_OTA_051_all_2105262251_6fed6a93c6c54103.zip
ROM_NAME: OxygenOS
TZ: Asia/Shanghai

jobs:
Expand All @@ -39,27 +39,55 @@ jobs:
sed -i 's/\|\| exit 1//g' $GITHUB_WORKSPACE/ErfanGSIs/url2GSI.sh
sed -i 's/exit 1//g' $GITHUB_WORKSPACE/ErfanGSIs/url2GSI.sh

- name: Setting up ErfanGSI requirements with Xiaoxin script
- name: Setting up ErfanGSI requirements with XiaoxinSGSI setup script
run: |
cd ErfanGSIs
cd $GITHUB_WORKSPACE/ErfanGSIs
mkdir ./output
wget https://raw.githubusercontent.com/TimeMapleLing/actions_build_SGSI/main/bin/setup.sh -o setup-xiaoxin.sh
sudo bash setup-xiaoxin.sh

git clone https://github.com/xiaoxindada/actions_build_SGSI.git setupp
cd setupp/bin
sudo bash ./setup.sh

- name: Download Stock Rom & Generate GSI
run: sudo ./ErfanGSIs/url2GSI.sh -c -b $ROM_URL $ROM_NAME
run: |
cd $GITHUB_WORKSPACE/ErfanGSIs
sudo bash ./url2GSI.sh -c -b $ROM_URL $ROM_NAME

- name: Zip GSI
run: |
cd $GITHUB_WORKSPACE/ErfanGSIs/output
mkdir final
zip -r final/GSI.zip ./*

- name: Upload GSI to WeTransfer
zip -r final/ ${{ secrets.ZIPNAME }} ./*
du -sh final/ ${{ secrets.ZIPNAME }}

- name: Install rclone #安装rclone
run: curl https://rclone.org/install.sh | sudo bash

- name: Unzip config #解压配置文件
run: |
cd $GITHUB_WORKSPACE/ErfanGSIs/output
curl -sL https://git.io/file-transfer | sh
./transfer wet ./final/GSI.zip
mkdir -p ~/.config/rclone/
unzip -P ${{ secrets.PASSWD }} rclone.zip -d ~/.config/rclone/



- name: Run rclone #运行rclone
run: |

# 更改时区

sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

# 列出文件(此处不展示)

echo "列出文件(此处不展示)"
cd $GITHUB_WORKSPACE/ErfanGSIs/output
rclone move final/${{ secrets.ZIPNAME }} e5:/搞机资源/gsi/

- name: Zip config #打包配置文件
run: zip -P ${{ secrets.PASSWD }} rclone.zip -j ~/.config/rclone/rclone.conf

- name: Commit config #提交配置文件
run: |
git config --global user.email "1801729420@qq.com"
git config --global user.name "chenhuawen"
git add .
git commit -am "new rclone config"
git push

1 change: 1 addition & 0 deletions ErfanGSIs
Submodule ErfanGSIs added at fc8afe
Binary file added rclone.zip
Binary file not shown.