-
-
Notifications
You must be signed in to change notification settings - Fork 9
599 lines (562 loc) · 29.7 KB
/
build-v04.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
# This build yml is moving away from sourceforge-only upload and diversifying
# Having multiple options
name: 'Super Patcher for A/B Devices v2'
on:
workflow_dispatch:
inputs:
NAME_REL:
description: 'Enter Name for Github Release'
required: true
SUPER_LINK:
description: 'Super.img Link for download'
required: true
SUPER_TYPE:
description: 'Type of super image that Github action is going to recieve'
required: true
default: 'tar.xz'
type: choice
options:
- 'tar'
- 'tar.xz'
- 'zip'
- '7z'
- 'lz4'
- 'img'
FORDEVICE:
description: What is this for?, this is only for GH Action runners
NAME_ID:
description: 'What you want to call the finished product (Prohibit the use of profanity)'
required: true
default: 'super-patchid'
COMPRESSION_CHOICE:
description: 'How would you like the final product would be, compressed [tar, xz, 7z, lz4], or uncompressed? (Note: if you are choosing lz4, super.img will be compressed to LZ4 but will be contained in a tar file)'
required: true
default: 'xz'
type: choice
options:
- 'tar'
- 'xz'
- '7z'
- 'lz4'
- 'uncompressed'
GSI_LINK:
description: Enter GSI Link
required: true
GSI_FILE:
description: GSI File Type (No Compression means only .img)
required: true
default: xz
type: choice
options:
- 'tar.xz'
- 'xz'
- 'zip'
- 'tar'
- 'img.gz'
- 'No compression'
SFTP_PRIV_DEST:
description: 'Type remote sftp folder the finish product would land'
required: true
jobs:
build:
name: 'Super Image Patch'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Display Session Parameters, for Logging Purposes Just in case if something goes wrong
run: |
echo "User ENV Var"
echo "Super Location: ${{ github.event.inputs.SUPER_LINK }}"
echo "Super Compression Type: ${{ github.event.inputs.SUPER_TYPE }}"
echo "Name ID: ${{ github.event.inputs.NAME_ID }}"
echo "Compression Choice: ${{ github.event.inputs.COMPRESSION_CHOICE }}"
echo "GSI IMG Link: ${{ github.event.inputs.GSI_LINK }}"
echo "GSI IMG Type: ${{ github.event.inputs.GSI_FILE }}"
echo "Name REL: ${{ github.event.inputs.NAME_REL }}"
echo "SFTP Server Dir: ${{ github.event.inputs.SFTP_PRIV_DEST }}"
- name: Check Out
uses: actions/checkout@v3
- name: Cleanup Bloated Action Environment
uses: rokibhasansagar/slimhub_actions@main
with:
retain: "docker_imgcache,docker_buildkit,container_tools,nodejs_npm,toolcache_node"
# We need docker for SFTP sending, and node for TGBots
- name: Display Size Block
run: |
lsblk
- name: Prepare the Environment
run: |
sudo apt update
sudo apt upgrade -y
sudo apt install p7zip* aria2 wget android-tools* lz4 rsync zstd libprotobuf-dev brotli android-sdk-libsparse-utils
# IDK WHAT AM I DOING
pwd >> dir.txt
LOCATION_POINT=$(pwd)
echo $LOCATION_POINT
- name: Grab Utils
run: |
mkdir bin
cd bin
wget https://github.com/SUFandom/super-patch/raw/main/packages/amd64/lpadd
wget https://github.com/SUFandom/super-patch/raw/main/packages/amd64/lpdump
wget https://github.com/SUFandom/super-patch/raw/main/packages/amd64/lpmake
wget https://github.com/SUFandom/super-patch/raw/main/packages/amd64/lpunpack
chmod +x *
sudo cp * /usr/bin/
cd ..
mkdir universal
cd universal
wget https://github.com/SUFandom/super-patch/raw/main/fake-props/product.img
wget https://github.com/SUFandom/super-patch/raw/main/fake-props/system_ext.img
cd ..
- name: Grabbing Images
run: |
GSILINK="${{github.event.inputs.GSI_LINK}}"
SEL="${{github.event.inputs.GSI_FILE}}"
case "$SEL" in
"xz")
mkdir cmp_img
cd cmp_img
aria2c -x 10 "$GSILINK"
7za x *.xz
cp *.img system.img
cd ..
;;
"tar.xz")
mkdir cmp_img
cd cmp_img
aria2c -x 10 "$GSILINK"
tar -xf *.tar.xz
cp *.img system.img
cd ..
;;
"zip")
mkdir cmp_img
cd cmp_img
aria2c -x 10 "$GSILINK"
unzip *.zip
cp *.img system.img
cd ..
;;
"tar")
mkdir cmp_img
cd cmp_img
aria2c -x 10 "$GSILINK"
tar -xf *.tar
cp *.img system.img
cd ..
;;
"img.gz")
mkdir cmp_img
cd cmp_img
aria2c -x 10 "$GSILINK"
gunzip *.img.gz
cp *.img system.img
cd ..
;;
"No compression")
mkdir cmp_img
cd cmp_img
aria2c -x 10 "$GSILINK"
cp *.img system.img
cd ..
;;
esac
- name: Fetch Super Images
run: |
SUPERTYPE="${{github.event.inputs.SUPER_TYPE}}"
case "$SUPERTYPE" in
"tar")
mkdir -p image_build
export DIR="$(pwd)/image_build"
export ODM="$DIR/odm.img"
export SYSTEM="$DIR/system.img"
export SYSTEM_EXT="$DIR/system_ext.img"
export PRODUCT="$DIR/product.img"
export VENDOR="$DIR/vendor.img"
export SUPER="$DIR/super.img"
aria2c -x 10 ${{github.event.inputs.SUPER_LINK}}
tar -xf *.tar
if [ -e super.img ]; then
mv super.img $DIR/
elif [ -e "$DIR/super.img" ]; then
echo "No need to intervene further after download since theres an image already being there"
else
echo "ERROR: CANNOT FIND SUPER.IMG!!!"
exit 1
fi
;;
"tar.xz")
mkdir -p image_build
export DIR="$(pwd)/image_build"
export ODM="$DIR/odm.img"
export SYSTEM="$DIR/system.img"
export SYSTEM_EXT="$DIR/system_ext.img"
export PRODUCT="$DIR/product.img"
export VENDOR="$DIR/vendor.img"
export SUPER="$DIR/super.img"
aria2c -x 10 ${{github.event.inputs.SUPER_LINK}}
tar -xf *.tar.xz
if [ -e super.img ]; then
mv super.img $DIR/
elif [ -e "$DIR/super.img" ]; then
echo "No need to intervene further after download since theres an image already being there"
else
echo "ERROR: CANNOT FIND SUPER.IMG!!!"
exit 1
fi
;;
"zip")
mkdir -p image_build
export DIR="$(pwd)/image_build"
export ODM="$DIR/odm.img"
export SYSTEM="$DIR/system.img"
export SYSTEM_EXT="$DIR/system_ext.img"
export PRODUCT="$DIR/product.img"
export VENDOR="$DIR/vendor.img"
export SUPER="$DIR/super.img"
aria2c -x 10 ${{github.event.inputs.SUPER_LINK}}
unzip *.zip
if [ -e super.img ]; then
mv super.img $DIR/
elif [ -e "$DIR/super.img" ]; then
echo "No need to intervene further after download since theres an image already being there"
else
echo "ERROR: CANNOT FIND SUPER.IMG!!!"
echo "If this was a mistake, notify @Mizumo-prjkt :D"
exit 1
fi
;;
"7z")
mkdir -p image_build
export DIR="$(pwd)/image_build"
export ODM="$DIR/odm.img"
export SYSTEM="$DIR/system.img"
export SYSTEM_EXT="$DIR/system_ext.img"
export PRODUCT="$DIR/product.img"
export VENDOR="$DIR/vendor.img"
export SUPER="$DIR/super.img"
aria2c -x 10 ${{github.event.inputs.SUPER_LINK}}
7za x *.7z
if [ -e super.img ]; then
mv super.img $DIR/
elif [ -e "$DIR/super.img" ]; then
echo "No need to intervene further after download since theres an image already being there"
else
echo "ERROR: CANNOT FIND SUPER.IMG!!!"
echo "If this was a mistake, notify @Mizumo-prjkt :D"
exit 1
fi
;;
"lz4")
mkdir -p image_build
export DIR="$(pwd)/image_build"
export ODM="$DIR/odm.img"
export SYSTEM="$DIR/system.img"
export SYSTEM_EXT="$DIR/system_ext.img"
export PRODUCT="$DIR/product.img"
export VENDOR="$DIR/vendor.img"
export SUPER="$DIR/super.img"
aria2c -x 10 ${{github.event.inputs.SUPER_LINK}}
lz4 -dv *.lz4
if [ -e super.img ]; then
mv super.img $DIR/
elif [ -e "$DIR/super.img" ]; then
echo "No need to intervene further after download since theres an image already being there"
else
echo "ERROR: CANNOT FIND SUPER.IMG!!!"
echo "If this was a mistake, notify @Mizumo-prjkt :D"
exit 1
fi
;;
"img")
mkdir -p image_build
export DIR="$(pwd)/image_build"
export ODM="$DIR/odm.img"
export SYSTEM="$DIR/system.img"
export SYSTEM_EXT="$DIR/system_ext.img"
export PRODUCT="$DIR/product.img"
export VENDOR="$DIR/vendor.img"
export SUPER="$DIR/super.img"
aria2c -x 10 ${{github.event.inputs.SUPER_LINK}}
if [ -e super.img ]; then
mv super.img $DIR/
else
echo "ERROR: CANNOT FIND SUPER.IMG!!!"
echo "If this was a mistake, notify @Mizumo-prjkt :D"
exit 1
fi
;;
esac
- name: Indexing Files
run: |
# Tryna make sure lol
export DIR="$(pwd)/image_build"
export ODM="$DIR/odm.img"
export PRODUCT="$DIR/product.img"
export SYSTEM="$DIR/system.img"
export SYSTEM_EXT="$DIR/system_ext.img"
export VENDOR="$DIR/vendor.img"
export SUPER="$DIR/super.img"
# Add some temps
export TMP_ENVIRO="$(pwd)/tmp"
mkdir tmp
if [ -e "$DIR/super.img" ]; then
simg2img $DIR/super.img $DIR/super_raw.img
if [ -e "$DIR/super_raw.img" ]; then
if [ "$(ls -nl "$DIR/super_raw.img" | awk '{print $5}')" -lt 100000 ]; then
rm -rf super_raw.img
lpdump $DIR/super.img > $TMP_ENVIRO/super_map.txt
printf "$(<$TMP_ENVIRO/super_map.txt)" | grep -e "Size:" | awk '{print $2}' > $TMP_ENVIRO/super_size.txt
printf "$(<$TMP_ENVIRO/super_map.txt)" | grep -e "Maximum size:" | awk '{print $3}' | sed '2!d' > $TMP_ENVIRO/super_main.txt
lpunpack $DIR/super.img $DIR/
else
rm -rf $DIR/super.img
lpdump $DIR/super_raw.img > $TMP_ENVIRO/super_map.txt
printf "$(<$TMP_ENVIRO/super_map.txt)" | grep -e "Size:" | awk '{print $2}' > $TMP_ENVIRO/super_size.txt
printf "$(<$TMP_ENVIRO/super_map.txt)" | grep -e "Maximum size:" | awk '{print $3}' | sed '2!d' > $TMP_ENVIRO/super_main.txt
lpunpack $DIR/super_raw.img $DIR/
fi
else
echo "Super.img is corrupted"
exit 1
fi
fi
- name: Editing the Super.img
run: |
# Tryna make sure lol
export DIR="$(pwd)/image_build"
export ODM="$DIR/odm.img"
export SYSTEM="$DIR/system.img"
export PRODUCT="$DIR/product.img"
export SYSTEM_EXT="$DIR/system_ext.img"
export VENDOR="$DIR/vendor.img"
export SUPER="$DIR/super.img"
# Add some temps
export TMP_ENVIRO="$(pwd)/tmp"
rm -rf $SYSTEM
mv cmp_img/system.img $SYSTEM
if [ "$(ls -nl "$SYSTEM" | awk '{print $5}')" -lt 100000 ]; then
echo "Invalid size for a GSI"
exit 1
fi
cp universal/* $DIR/
- name: Building the whole Super.img
run: |
# Tryna make sure lol
export DIR="$(pwd)/image_build"
export ODM="$DIR/odm.img"
export PRODUCT="$DIR/product.img"
export SYSTEM="$DIR/system.img"
export SYSTEM_EXT="$DIR/system_ext.img"
export VENDOR="$DIR/vendor.img"
export SUPER="$DIR/super.img"
# Add some temps
export TMP_ENVIRO="$(pwd)/tmp"
rm -rf $SUPER
if [ "$(find $DIR/system.img -type f ! -size 0 -printf '%S\n' | sed 's/.\.[0-9]*//')" == 1 ]; then
echo "PRC"
else
simg2img $DIR/system.img $DIR/system.raw.img
fi
if [ -e "$DIR/odm.img" ]; then
if [ -e "$DIR/product.img" ]; then
if [ "$(ls -nl $DIR/product.img | awk '{print $5}')" -gt 6000 ]; then
cp -urf universal/product.img $DIR/product.img
fi
else
cp -urf universal/product.img $DIR/product.img
fi
cp universal/product.img $PRODUCT
lpmake --metadata-size 65536 --super-name super --metadata-slots 2 --device super:$(<$TMP_ENVIRO/super_size.txt) --group main:$(<$TMP_ENVIRO/super_main.txt) --partition system:readonly:$(ls -nl $DIR/system.img | awk '{print $5}'):main --image system=$DIR/system.img --partition vendor:readonly:$(ls -nl $DIR/vendor.img | awk '{print $5}'):main --image vendor=$DIR/vendor.img --partition product:readonly:$(ls -nl $DIR/product.img | awk '{print $5}'):main --image product=$DIR/product.img --partition odm:readonly:$(ls -nl $DIR/odm.img | awk '{print $5}'):main --image odm=$DIR/odm.img --sparse --output $DIR/super.img
else
if [ -e "$DIR/product.img" ]; then
if [ "$(ls -nl $DIR/product.img | awk '{print $5}')" -gt 6000 ]; then
cp -urf universal/product.img $DIR/product.img
cp universal/product.img $PRODUCT
fi
else
cp -urf universal/product.img $DIR/product.img
fi
if [ ! -e "$DIR/system_ext.img" ]; then
cp -urf universal/system_ext.img $DIR/product.img
else
cp -urf universal/system_ext.img $DIR/product.img
fi
lpmake --metadata-size 65536 --super-name super --metadata-slots 2 --device super:$(<$TMP_ENVIRO/super_size.txt) --group main:$(<$TMP_ENVIRO/super_main.txt) --partition system:readonly:$(ls -nl $DIR/system.img | awk '{print $5}'):main --image system=$DIR/system.img --partition vendor:readonly:$(ls -nl $DIR/vendor.img | awk '{print $5}'):main --image vendor=$DIR/vendor.img --partition product:readonly:$(ls -nl $DIR/product.img | awk '{print $5}'):main --image product=$DIR/product.img --partition system_ext:readonly:$(ls -nl $DIR/system_ext.img | awk '{print $5}'):main --image system_ext=$DIR/system_ext.img --sparse --output $DIR/super.img
fi
- name: Packing the image
run: |
# Tryna make sure lol
export DIR="$(pwd)/image_build"
export PRODUCT="$DIR/product.img"
export ODM="$DIR/odm.img"
export SYSTEM="$DIR/system.img"
export SYSTEM_EXT="$DIR/system_ext.img"
export VENDOR="$DIR/vendor.img"
export SUPER="$DIR/super.img"
# Add some temps
export TMP_ENVIRO="$(pwd)/tmp"
export SELECT_SLIDER="${{ github.event.inputs.COMPRESSION_CHOICE }}"
export NAME_CHOICE="${{ github.event.inputs.NAME_ID }}"
mkdir rel
case "$SELECT_SLIDER" in
"tar")
cd image_build
tar -cvf "$NAME_CHOICE.tar" super.img
cd ..
cp "image_build/$NAME_CHOICE.tar" rel/
;;
"xz")
cd image_build
tar --xz -Jcvf "$NAME_CHOICE.tar.xz" super.img
cd ..
cp "image_build/$NAME_CHOICE.tar.xz" rel/
;;
"7z")
cd image_build
7za a -mx=9 "$NAME_CHOICE.7z" super.img
cd ..
cp "image_build/$NAME_CHOICE.7z" rel/
;;
"lz4")
cd image_build
lz4 -12 -v -T0 super.img super.img.lz4
tar -cvf "$NAME_CHOICE.tar" super.img.lz4
cd ..
cp "image_build/$NAME_CHOICE.tar" rel/
;;
"uncompressed")
echo "Bruh, ok"
echo "DEBUG: THIS FILE WILL NOT BE RENAMED :D"
cp image_build/super.img rel/super.img
;;
esac
- name: Measuring the File by release and things
id: set-vars
run: |
FINISH="${{github.event.inputs.COMPRESSION_CHOICE}}"
NAMEFILE="${{github.event.inputs.NAME_ID}}"
case $FINISH in
"tar")
POINT="$NAMEFILE.tar"
FILETARGET="$(ls -lha rel/$POINT | tail -n +2 | grep -v '^d' | awk '{print $5}' | sed 's/^ *//;s/ *$//')"
CSUM=$(sha256sum rel/$POINT)
echo "::set-output name=sha256::$CSUM"
echo "::set-output name=filesize::$FILETARGET"
echo "DEBUG: $CSUM"
echo "DEBUG: $FILETARGET"
;;
"xz")
POINT="$NAMEFILE.tar.xz"
FILETARGET="$(ls -lha rel/$POINT | tail -n +2 | grep -v '^d' | awk '{print $5}' | sed 's/^ *//;s/ *$//')"
CSUM=$(sha256sum rel/$POINT)
echo "::set-output name=sha256::$CSUM"
echo "::set-output name=filesize::$FILETARGET"
echo "DEBUG: $CSUM"
echo "DEBUG: $FILETARGET"
;;
"7z")
POINT="$NAMEFILE.7z"
FILETARGET="$(ls -lha rel/$POINT | tail -n +2 | grep -v '^d' | awk '{print $5}' | sed 's/^ *//;s/ *$//')"
CSUM=$(sha256sum rel/$POINT)
echo "::set-output name=sha256::$CSUM"
echo "::set-output name=filesize::$FILETARGET"
echo "DEBUG: $CSUM"
echo "DEBUG: $FILETARGET"
;;
"lz4")
POINT="$NAMEFILE.tar"
FILETARGET="$(ls -lha rel/$POINT | tail -n +2 | grep -v '^d' | awk '{print $5}' | sed 's/^ *//;s/ *$//')"
CSUM=$(sha256sum rel/$POINT)
echo "::set-output name=sha256::$CSUM"
echo "::set-output name=filesize::$FILETARGET"
echo "DEBUG: $CSUM"
echo "DEBUG: $FILETARGET"
;;
"uncompressed")
POINT="super.img"
FILETARGET="$(ls -lha rel/$POINT | tail -n +2 | grep -v '^d' | awk '{print $5}' | sed 's/^ *//;s/ *$//')"
CSUM=$(sha256sum rel/$POINT)
echo "::set-output name=sha256::$CSUM"
echo "::set-output name=filesize::$FILETARGET"
echo "DEBUG: $CSUM"
echo "DEBUG: $FILETARGET"
;;
esac
# DONT BLAME ME, BLAME THE CREATORS OF ARTIFACTS, NOT ALLOWING DIRECT FILE DETECTION UNLIKE GITHUB RELEASE
# And if you are wondering why is there no uncompressed artifacts, its because the image itself is already heavy
- name: Upload to Github Artifacts, tar/lz4
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.inputs.NAME_REL }}
path: |
"rel/${{github.event.inputs.NAME_REL}}.tar"
compression-level: 9
- name: Upload to Github Artifacts, tar.xz
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.inputs.NAME_REL }}.tar.xz
path: |
"rel/${{github.event.inputs.NAME_REL}}.tar.xz"
compression-level: 9
- name: Upload to Github Artifacts, 7z
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.inputs.NAME_REL }}.7z
path: |
"rel/${{github.event.inputs.NAME_REL}}.7z"
compression-level: 9
- name: Upload to Github Releases
continue-on-error: true
uses: softprops/action-gh-release@v2
with:
files: |
rel/*.tar
rel/*.tar.xz
rel/*.7z
name: ${{ github.event.inputs.NAME_REL }} - ${{ github.run_id }}
tag_name: ${{ github.run_id }}
body: |
Super Image File used: ${{ github.event.inputs.SUPER_LOCATE }}
GSI Downloaded: <br>
- Link: ${{github.event.inputs.GSI_LINK}}
- Link to SSH Uploaded (Mirror): ${{secrets.SFTP_REPO_LINK}}
<br>
If this above ^ is missing a link, that means theere is no mirror or it's private
Build Method: ${{ github.event.inputs.COMPRESSION_CHOICE }}
Note: If there's nothing here, then the Build was too big for Github Releases to acknowledge, visit the mirror instead
Builder Used: v03
Recommend: Please Decompress/Extract the super.img file then flash it to your device
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to SourceForge
uses: pressidium/lftp-mirror-action@v1
with:
host: frs.sourceforge.net
port: 22
user: ${{ secrets.SOURCEFORGE_USERNAME }}
pass: ${{ secrets.SOURCEFORGE_PASSWORD }}
localDir: './rel/'
remoteDir: '${{github.event.inputs.SFTP_PRIV_DEST}}'
- name: 'Send alert to Telegram users : @Mizumo_prjkt'
uses: appleboy/telegram-action@master
with:
to: '${{secrets.TELEGRAM_TO}}'
token: '${{secrets.TELEGRAM_TOKEN}}'
message: |
**GSI Builder Triggered and released**: ${{github.event.inputs.NAME_REL}}
For: ${{github.event.inputs.FORDEVICE}}
GSI File: ${{github.event.inputs.GSI_LINK}}<br>
Checksum:
- SHA256: ${{steps.set-vars.outputs.sha256}}<br>
- File Size: ${{steps.set-vars.outputs.filesize}}
[Download]('https://github.com/MizProject/super-patch-action/releases/tag/${{github.run_id}}') | SFTP Alternative: ${{secrets.SFTP_REPO_LINK}}
Mizu's Note:
> No Notes
env:
TELEGRAM_PARSE_MODE: "markdown"