From 046afedd6529ae3d7ea6ddb27921853c03757b6b Mon Sep 17 00:00:00 2001 From: egor-white Date: Sat, 14 Jun 2025 15:20:40 +0300 Subject: [PATCH] update actions --- .github/workflows/workflow.yml | 59 ++++++++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 75051fd..05a4de2 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -13,9 +13,11 @@ on: type: string version_code: description: 'Module version code (xx)' + required: true + type: string release_name: description: 'Release Name' - required: false + required: true type: string release_changes: description: 'Release Changes' @@ -111,7 +113,6 @@ jobs: description=Ускорение CDN серверов Google. ТГК: https://t.me/zaprett_module updateJson=https://raw.githubusercontent.com/egor-white/zaprett/refs/heads/main/update-tv.json EOF - cat zaprett/module.prop - name: Tree files run: | @@ -124,4 +125,56 @@ jobs: mv zaprett.zip out/ mv zaprett-extended.zip out/ - mv zaprett-tv.zip out/ \ No newline at end of file + mv zaprett-tv.zip out/ + + - name: Create release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ inputs.tag }} + name: ${{ inputs.release_name }} + body: ${{ inputs.release_changes }} + files: out/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Update changelog + run: | + echo ${{ inputs.release_changes}} > changelog.md + + - name: Update update.json + run: | + cat > update.json < update_extended.json < update_tv.json <