-
Notifications
You must be signed in to change notification settings - Fork 56
57 lines (48 loc) · 1.39 KB
/
Copy pathpatch_vbmeta.yml
File metadata and controls
57 lines (48 loc) · 1.39 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
52
53
54
55
56
57
name: Patch VBMeta
on:
workflow_dispatch:
inputs:
ARCHITECTURE:
description: 'Architecture'
required: true
default: 'x86_64'
type: choice
options:
- x86_64
- x86
- arm64-v8a
- armaebi-v7a
permissions:
contents: write
jobs:
build:
if: github.event.repository.owner.id == github.event.sender.id
runs-on: ubuntu-latest
steps:
- name: Check Out
uses: actions/checkout@v3.1.0
- name: Operating System Information
run: |
uname -a
- name: Patch File Information
run: |
file ${{ github.event.inputs.ARCHITECTURE }}/vbmeta-disable-verification
- name: Give Permissio and Run Patch
run: |
chmod +x ${{ github.event.inputs.ARCHITECTURE }}/vbmeta-disable-verification
./${{ github.event.inputs.ARCHITECTURE }}/vbmeta-disable-verification vbmeta.img
- name: Upload to Release
uses: ncipollo/release-action@v1.12.0
with:
artifacts: vbmeta.img
Name: Patched VBMeta
draft: false
prerelease: true
tag: ${{ github.run_id }}
token: ${{ secrets.GITHUB_TOKEN }}
body: |
Your vbmeta image are now ready!
Flash it now.
- name: Link to Release
run: |
echo "https://github.com/${GITHUB_REPOSITORY}/releases/tag/${{ github.run_id }}"