Skip to content

ROM Mirror

ROM Mirror #1

Workflow file for this run

name: ROM Mirror
on:
workflow_dispatch:
inputs:
ROM_URL:
description: "ROM_URL"
default: "https://divestos.org/mirror.php?base=LineageOS&f=redfin/divested-20.0-20240405-dos-redfin.zip"
DEVICE_NAME:
description: "DEVICE_NAME"
default: "redfin"
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Download file
run: |
curl -LJO ${{ github.event.inputs.ROM_URL }}
echo "ZIP_FILE=$(basename -a *.zip)" >> $GITHUB_ENV
echo "ZIP_FILE_SHA256=$(sha256sum *.zip | cut -d' ' -f1)" >> $GITHUB_ENV
- name: Upload to Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ./*.zip
name: ${{ github.event.inputs.DEVICE_NAME }}-${{ github.run_id }}
tag_name: ${{ github.run_id }}
body: |
Device: ${{ github.event.inputs.DEVICE_NAME }}
Rom: [${{ env.ZIP_FILE }}](${{ github.event.inputs.ROM_URL }})
SHA256: ${{ env.ZIP_FILE_SHA256 }}