ci: Fixed build information
This commit is contained in:
8
.github/workflows/build-kernel-a12.yml
vendored
8
.github/workflows/build-kernel-a12.yml
vendored
@@ -88,14 +88,6 @@ jobs:
|
|||||||
echo "$BOOT_SIGN_KEY" > ./kernel-build-tools/linux-x86/share/avb/testkey_rsa2048.pem
|
echo "$BOOT_SIGN_KEY" > ./kernel-build-tools/linux-x86/share/avb/testkey_rsa2048.pem
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Bot session cache
|
|
||||||
id: bot_session_cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
if: false
|
|
||||||
with:
|
|
||||||
path: scripts/ksubot.session
|
|
||||||
key: ${{ runner.os }}-bot-session
|
|
||||||
|
|
||||||
- name: Build boot images
|
- name: Build boot images
|
||||||
run: |
|
run: |
|
||||||
export AVBTOOL=$GITHUB_WORKSPACE/kernel-build-tools/linux-x86/bin/avbtool
|
export AVBTOOL=$GITHUB_WORKSPACE/kernel-build-tools/linux-x86/bin/avbtool
|
||||||
|
|||||||
8
.github/workflows/build-kernel-a13.yml
vendored
8
.github/workflows/build-kernel-a13.yml
vendored
@@ -123,14 +123,6 @@ jobs:
|
|||||||
echo "$BOOT_SIGN_KEY" > ./kernel-build-tools/linux-x86/share/avb/testkey_rsa2048.pem
|
echo "$BOOT_SIGN_KEY" > ./kernel-build-tools/linux-x86/share/avb/testkey_rsa2048.pem
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Bot session cache
|
|
||||||
id: bot_session_cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
if: false
|
|
||||||
with:
|
|
||||||
path: scripts/ksubot.session
|
|
||||||
key: ${{ runner.os }}-bot-session
|
|
||||||
|
|
||||||
- name: Build boot images
|
- name: Build boot images
|
||||||
run: |
|
run: |
|
||||||
export AVBTOOL=$GITHUB_WORKSPACE/kernel-build-tools/linux-x86/bin/avbtool
|
export AVBTOOL=$GITHUB_WORKSPACE/kernel-build-tools/linux-x86/bin/avbtool
|
||||||
|
|||||||
8
.github/workflows/build-kernel-a14.yml
vendored
8
.github/workflows/build-kernel-a14.yml
vendored
@@ -135,14 +135,6 @@ jobs:
|
|||||||
echo "$BOOT_SIGN_KEY" > ./kernel-build-tools/linux-x86/share/avb/testkey_rsa2048.pem
|
echo "$BOOT_SIGN_KEY" > ./kernel-build-tools/linux-x86/share/avb/testkey_rsa2048.pem
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Bot session cache
|
|
||||||
id: bot_session_cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
if: false
|
|
||||||
with:
|
|
||||||
path: scripts/ksubot.session
|
|
||||||
key: ${{ runner.os }}-bot-session
|
|
||||||
|
|
||||||
- name: Build boot images
|
- name: Build boot images
|
||||||
run: |
|
run: |
|
||||||
export AVBTOOL=$GITHUB_WORKSPACE/kernel-build-tools/linux-x86/bin/avbtool
|
export AVBTOOL=$GITHUB_WORKSPACE/kernel-build-tools/linux-x86/bin/avbtool
|
||||||
|
|||||||
10
.github/workflows/build-kernel-a15.yml
vendored
10
.github/workflows/build-kernel-a15.yml
vendored
@@ -107,15 +107,7 @@ jobs:
|
|||||||
if [ ! -z "$BOOT_SIGN_KEY" ]; then
|
if [ ! -z "$BOOT_SIGN_KEY" ]; then
|
||||||
echo "$BOOT_SIGN_KEY" > ./kernel-build-tools/linux-x86/share/avb/testkey_rsa2048.pem
|
echo "$BOOT_SIGN_KEY" > ./kernel-build-tools/linux-x86/share/avb/testkey_rsa2048.pem
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Bot session cache
|
|
||||||
id: bot_session_cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
if: false
|
|
||||||
with:
|
|
||||||
path: scripts/ksubot.session
|
|
||||||
key: ${{ runner.os }}-bot-session
|
|
||||||
|
|
||||||
- name: Build boot images
|
- name: Build boot images
|
||||||
run: |
|
run: |
|
||||||
export AVBTOOL=$GITHUB_WORKSPACE/kernel-build-tools/linux-x86/bin/avbtool
|
export AVBTOOL=$GITHUB_WORKSPACE/kernel-build-tools/linux-x86/bin/avbtool
|
||||||
|
|||||||
8
.github/workflows/build-kernel-a16.yml
vendored
8
.github/workflows/build-kernel-a16.yml
vendored
@@ -81,14 +81,6 @@ jobs:
|
|||||||
echo "$BOOT_SIGN_KEY" > ./kernel-build-tools/linux-x86/share/avb/testkey_rsa2048.pem
|
echo "$BOOT_SIGN_KEY" > ./kernel-build-tools/linux-x86/share/avb/testkey_rsa2048.pem
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Bot session cache
|
|
||||||
id: bot_session_cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
if: false
|
|
||||||
with:
|
|
||||||
path: scripts/ksubot.session
|
|
||||||
key: ${{ runner.os }}-bot-session
|
|
||||||
|
|
||||||
- name: Build boot images
|
- name: Build boot images
|
||||||
run: |
|
run: |
|
||||||
export AVBTOOL=$GITHUB_WORKSPACE/kernel-build-tools/linux-x86/bin/avbtool
|
export AVBTOOL=$GITHUB_WORKSPACE/kernel-build-tools/linux-x86/bin/avbtool
|
||||||
|
|||||||
10
.github/workflows/build-manager.yml
vendored
10
.github/workflows/build-manager.yml
vendored
@@ -84,7 +84,7 @@ jobs:
|
|||||||
if [ "${{ matrix.spoofed }}" == "true" ]; then
|
if [ "${{ matrix.spoofed }}" == "true" ]; then
|
||||||
echo "title=Spoofed-Manager" >> $GITHUB_OUTPUT
|
echo "title=Spoofed-Manager" >> $GITHUB_OUTPUT
|
||||||
# maybe need a new var
|
# maybe need a new var
|
||||||
echo "topicid=519956" >> $GITHUB_OUTPUT
|
echo "topicid=${{ vars.MESSAGE_SPOOFED_THREAD_ID }}" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "title=Manager" >> $GITHUB_OUTPUT
|
echo "title=Manager" >> $GITHUB_OUTPUT
|
||||||
echo "topicid=${{ vars.MESSAGE_THREAD_ID }}" >> $GITHUB_OUTPUT
|
echo "topicid=${{ vars.MESSAGE_THREAD_ID }}" >> $GITHUB_OUTPUT
|
||||||
@@ -179,14 +179,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: "${{ steps.determine.outputs.title }}-mappings"
|
name: "${{ steps.determine.outputs.title }}-mappings"
|
||||||
path: "manager/app/build/outputs/mapping/release/"
|
path: "manager/app/build/outputs/mapping/release/"
|
||||||
|
|
||||||
- name: Bot session cache
|
|
||||||
if: github.event_name != 'pull_request' && steps.need_upload.outputs.UPLOAD == 'true'
|
|
||||||
id: bot_session_cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: scripts/ksubot.session
|
|
||||||
key: ${{ runner.os }}-bot-session
|
|
||||||
|
|
||||||
- name: Upload to telegram
|
- name: Upload to telegram
|
||||||
if: github.event_name != 'pull_request' && steps.need_upload.outputs.UPLOAD == 'true'
|
if: github.event_name != 'pull_request' && steps.need_upload.outputs.UPLOAD == 'true'
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import asyncio
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from telethon import TelegramClient
|
from telethon import TelegramClient
|
||||||
|
from telethon.sessions import StringSession
|
||||||
|
|
||||||
API_ID = 611335
|
API_ID = 611335
|
||||||
API_HASH = "d524b414d21f4d37f08684c1df41ac9c"
|
API_HASH = "d524b414d21f4d37f08684c1df41ac9c"
|
||||||
@@ -73,11 +74,11 @@ def check_environ():
|
|||||||
if BRANCH is None:
|
if BRANCH is None:
|
||||||
print("[-] Invalid BRANCH")
|
print("[-] Invalid BRANCH")
|
||||||
exit(1)
|
exit(1)
|
||||||
if MESSAGE_THREAD_ID is None and MESSAGE_THREAD_ID != "":
|
if MESSAGE_THREAD_ID and MESSAGE_THREAD_ID != "":
|
||||||
try:
|
try:
|
||||||
MESSAGE_THREAD_ID = int(MESSAGE_THREAD_ID)
|
MESSAGE_THREAD_ID = int(MESSAGE_THREAD_ID)
|
||||||
except:
|
except:
|
||||||
print("[-] Invaild MESSAGE_THREAD_ID")
|
print("[-] Invalid MESSAGE_THREAD_ID")
|
||||||
exit(1)
|
exit(1)
|
||||||
else:
|
else:
|
||||||
MESSAGE_THREAD_ID = None
|
MESSAGE_THREAD_ID = None
|
||||||
@@ -92,9 +93,7 @@ async def main():
|
|||||||
print("[-] No files to upload")
|
print("[-] No files to upload")
|
||||||
exit(1)
|
exit(1)
|
||||||
print("[+] Logging in Telegram with bot")
|
print("[+] Logging in Telegram with bot")
|
||||||
script_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
|
async with await TelegramClient(StringSession(), API_ID, API_HASH).start(bot_token=BOT_TOKEN) as bot:
|
||||||
session_dir = os.path.join(script_dir, "ksubot")
|
|
||||||
async with await TelegramClient(session=session_dir, api_id=API_ID, api_hash=API_HASH).start(bot_token=BOT_TOKEN) as bot:
|
|
||||||
caption = [""] * len(files)
|
caption = [""] * len(files)
|
||||||
caption[-1] = get_caption()
|
caption[-1] = get_caption()
|
||||||
print("[+] Caption: ")
|
print("[+] Caption: ")
|
||||||
|
|||||||
Reference in New Issue
Block a user