diff --git a/.github/workflows/magisk_patch.yml b/.github/workflows/magisk_patch.yml index de1f6bc..30cab4b 100644 --- a/.github/workflows/magisk_patch.yml +++ b/.github/workflows/magisk_patch.yml @@ -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 }} \ No newline at end of file + token: ${{ secrets.TOKEN }} + name: ${{ env.date }} + tag_name: ${{ github.run_id }} + make_latest: 'true' + files: ./script/out/*.img + \ No newline at end of file