forked from R0rt1z2/GrindrPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.24 KB
/
Copy pathextract_base.yml
File metadata and controls
51 lines (42 loc) · 1.24 KB
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
name: Extract and Upload base APK
on:
workflow_dispatch:
inputs:
bundle_url:
description: "URL to the bundle"
required: true
default: ""
jobs:
extract-and-upload:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Create working directory
run: mkdir extracted_bundle
- name: Download bundle
run: |
echo "Downloading bundle from ${{ github.event.inputs.bundle_url }}"
curl -L -o extracted_bundle/bundle.zip "${{ github.event.inputs.bundle_url }}"
- name: Extract bundle
run: |
unzip extracted_bundle/bundle.zip -d extracted_bundle
- name: List extracted files
run: |
echo "Contents of the extracted folder:"
ls extracted_bundle
- name: Locate and upload base APK
run: |
if [ -f extracted_bundle/base.apk ]; then
echo "base.apk found. Preparing to upload..."
else
echo "base.apk not found. Make sure the bundle contains this file."
exit 1
fi
shell: bash
- name: Upload base APK
if: success()
uses: actions/upload-artifact@v3
with:
name: base.apk
path: extracted_bundle/base.apk