Skip to content

Commit

Permalink
workflows: use just 1 unified job and release
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsharkboy committed Aug 6, 2024
1 parent 5cae227 commit 289681b
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions .github/workflows/magisk_patch.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,30 @@
name: Patch boot images
name: Patch Exynos982x boot images with magisk

on:
workflow_dispatch:

jobs:
patch_boot_s10:
name: Patch boot images for S10 series
patch_boot:
name: Patch boot images and release
runs-on: ubuntu-latest

steps:
- name: Patch boot images with Magisk
uses: 0xsharkboy/magisk-patch-action@main
with:
devices: beyond0lte,beyond1lte,beyond2lte,beyondx
devices: beyond0lte,beyond1lte,beyond2lte,beyondx,d1,d2s,d2x,f62
ota_link: https://raw.githubusercontent.com/Evolution-XYZ/OTA/udc/builds/
release_title: Magisk patched boot images for S10 series
github_token: ${{ secrets.TOKEN }}

- name: Clean downloaded zip packages
run: find ./script/ -type f -name '*.zip' -delete
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV ; ls -R

patch_boot_n10_f62:
name: Patch boot images for Note 10 series and F62
needs: patch_boot_s10
runs-on: ubuntu-latest

steps:
- name: Patch boot images with Magisk
uses: 0xsharkboy/magisk-patch-action@main
- name: Upload patched boot images
uses: softprops/action-gh-release@v2
with:
devices: d1,d2s,d2x,f62
ota_link: https://raw.githubusercontent.com/Evolution-XYZ/OTA/udc/builds/
release_title: Magisk patched boot images for Note 10 series and f62
github_token: ${{ secrets.TOKEN }}
token: ${{ secrets.TOKEN }}
name: ${{ env.date }}
tag_name: ${{ github.run_id }}
make_latest: 'true'
files: ./script/out/*.img

0 comments on commit 289681b

Please sign in to comment.