Skip to content

Commit 72836c8

Browse files
committed
Removed Full Sources, added Script to Sync main repo releases
1 parent 872909b commit 72836c8

149 files changed

Lines changed: 112 additions & 17349 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/scripts/.shellcheckrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/scripts/compile_zip.sh

Lines changed: 0 additions & 78 deletions
This file was deleted.

.github/scripts/generatesha256.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/scripts/telebot.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/scripts/verify.sh

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 0 additions & 82 deletions
This file was deleted.

.github/workflows/sync.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Sync release
2+
on:
3+
workflow_dispatch:
4+
repository_dispatch:
5+
types: [sync-release]
6+
7+
permissions:
8+
id-token: write
9+
contents: write
10+
actions: write
11+
attestations: write
12+
13+
env:
14+
GH_TOKEN: ${{ github.token }}
15+
SOURCE_REPO: "Liliya2727/AZenith"
16+
MODULE_NAME: "AZenith"
17+
18+
jobs:
19+
get_tags:
20+
runs-on: ubuntu-latest
21+
outputs:
22+
tags: ${{ steps.check.outputs.tags }}
23+
latest: ${{ steps.check.outputs.latest }}
24+
steps:
25+
- name: Check tags
26+
id: check
27+
run: |
28+
SOURCE_TAGS=$(gh api repos/$SOURCE_REPO/tags | jq -r '.[].name' | sort)
29+
CURRENT_TAGS=$(gh api repos/$GITHUB_REPOSITORY/tags | jq -r '.[].name' | sort)
30+
MISSING=$(comm -23 <(echo "$SOURCE_TAGS") <(echo "$CURRENT_TAGS"))
31+
MISSING_JSON=$(echo "$MISSING" | jq -R -s -c 'split("\n")[:-1] | map(select(. != ""))')
32+
echo "tags=$MISSING_JSON" >> $GITHUB_OUTPUT
33+
LATEST=$(echo "$SOURCE_TAGS" | tail -1)
34+
echo "latest=$LATEST" >> $GITHUB_OUTPUT
35+
36+
release:
37+
needs: get_tags
38+
if: needs.get_tags.outputs.tags != '[]'
39+
runs-on: ubuntu-latest
40+
strategy:
41+
matrix:
42+
tag: ${{ fromJson(needs.get_tags.outputs.tags) }}
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@v6
46+
with:
47+
token: ${{ secrets.REPO_SYNC_PAT }}
48+
49+
- name: Find and download artifact
50+
id: download
51+
run: |
52+
ASSETS_JSON=$(gh api repos/$SOURCE_REPO/releases/tags/${{ matrix.tag }} --jq '.assets')
53+
ASSET_NAME=$(echo "$ASSETS_JSON" | jq -r '.[].name | select(startswith("AZenith") and endswith(".zip"))')
54+
55+
if [ -z "$ASSET_NAME" ]; then
56+
echo "No artifact found matching pattern"
57+
exit 1
58+
fi
59+
60+
echo "Found asset: $ASSET_NAME"
61+
gh release download ${{ matrix.tag }} --repo $SOURCE_REPO --pattern "$ASSET_NAME"
62+
echo "asset_name=$ASSET_NAME" >> $GITHUB_OUTPUT
63+
64+
- name: Get release body
65+
id: body
66+
run: |
67+
BODY=$(gh release view ${{ matrix.tag }} --repo $SOURCE_REPO --json body -q .body | sed -E 's/<img[^>]*>//g; s/!\[[^]]*\]\([^)]*\)//g')
68+
69+
echo "body<<EOF" >> $GITHUB_OUTPUT
70+
echo "$BODY" >> $GITHUB_OUTPUT
71+
echo "EOF" >> $GITHUB_OUTPUT
72+
73+
74+
- name: Create Release
75+
uses: KernelSU-Modules-Repo/module_release@main
76+
with:
77+
tag_name: ${{ matrix.tag }}
78+
make_latest: ${{ matrix.tag == needs.get_tags.outputs.latest }}
79+
file: "${{ steps.download.outputs.asset_name }}"
80+
body: ${{ steps.body.outputs.body }}
81+
82+
- uses: actions/attest-build-provenance@v3
83+
with:
84+
subject-path: "${{ steps.download.outputs.asset_name }}"

.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

NOTICE.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,35 @@ you may not use this project except in compliance with the License.
3333
You may obtain a copy of the License at
3434

3535
http://www.apache.org/licenses/LICENSE-2.0
36+
37+
## Rianixia-ThermalCore (Apache License 2.0)
38+
**Component:** ThermalCore Binary
3639

40+
Copyright (C) 2025-2026 Ryanistr
41+
42+
Licensed under the Apache License, Version 2.0 (the "License");
43+
you may not use this project except in compliance with the License.
44+
You may obtain a copy of the License at
45+
46+
http://www.apache.org/licenses/LICENSE-2.0
47+
48+
## VMTouch (BSD 3-Clause Licence)
49+
**Component:** VMT Binary
50+
51+
Copyright 2009-2023 Doug Hoyte and contributors
52+
53+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
54+
55+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
56+
57+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
58+
59+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
60+
61+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
62+
63+
64+
3765
## KTweak (BSD 2-Clause License)
3866
**Component:** Base functionality derived from KTweak
3967

0 commit comments

Comments
 (0)