Skip to content

Commit

Permalink
Update convert.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
smiley9000 authored Feb 4, 2024
1 parent 65d1354 commit ff60e30
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/convert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main # Change this to your desired branch
workflow_dispatch:
inputs:
GSI:
AP:
description: 'Samfw Link For AP'
required: true
default: ' AP LINK FROM SAMFW'
Expand Down Expand Up @@ -39,18 +39,32 @@ jobs:
- name: Downloading given firmware
run: |
# Downloading Stock rom
wget -O ap.zip ${{ github.event.inputs.GSI }}
wget -O ap.zip ${{ github.event.inputs.AP }}
chmod +x *
chmod 755 bin/*
chmod 755 aik/bin/*
- name: Converting
run: |
# Building the ROM
./down
- name: Rename file
run: mv ./last/EXT4_RW_AP.zip ./last/${{ github.event.inputs.Firmware }}.zip

- name: Upload Release Asset
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.inputs.upload_url }}
asset_path: ./last/${{ github.event.inputs.Firmware }}.zip
asset_name: ${{ github.event.inputs.Firmware }}.zip
asset_content_type: application/zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Release Asset
if: github.event_name == 'push'
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
Expand Down

0 comments on commit ff60e30

Please sign in to comment.