Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jun 8, 2024
1 parent 163c8d1 commit a968b28
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,46 @@ name: Make TWRP Device
on:
workflow_dispatch:
inputs:
IMG_URL:
description: 'IMG_URL'
IMG_URL:
description: "IMG_URL"
required: true
default: ''
default: ""

jobs:
build:
if: github.event.repository.owner.id == github.event.sender.id
runs-on: ubuntu-20.04

steps:
- name: Check Out
uses: actions/checkout@main
- name: Prepare the environment
run: |
sudo apt update
sudo apt update && sudo apt install python3-pip
sudo apt -y install python3 cpio wget
pip3 install twrpdtgen
mkdir dt
- name: Download boot or recovery img
run: |
aria2c "${{ github.event.inputs.IMG_URL }}"
ls
- name: Start build
run: |
python3 -m twrpdtgen -o dt/ *.img
- name: ZIP device tree
run: |
zip -r DeviceTree.zip ./dt
- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
files: |
./DeviceTree.zip
name: TWRP_Device_Tree-${{ github.run_id }}
tag_name: ${{ github.run_id }}
body: DeviceTree for twrp
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check Out
uses: actions/checkout@main

- name: Prepare the environment
run: |
sudo apt update
sudo apt update && sudo apt install python3-pip
sudo apt -y install python3 cpio wget
pip3 install twrpdtgen
mkdir dt
- name: Download boot or recovery img
run: |
aria2c "${{ github.event.inputs.IMG_URL }}"
ls
- name: Start build
run: |
python3 -m twrpdtgen -o dt/ boot.img
- name: ZIP device tree
run: |
zip -r DeviceTree.zip ./dt
- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
files: |
./DeviceTree.zip
name: TWRP_Device_Tree-${{ github.run_id }}
tag_name: ${{ github.run_id }}
body: DeviceTree for twrp
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a968b28

Please sign in to comment.