ci: update msg (#76)

This commit is contained in:
Ylarod
2023-01-16 19:18:42 +08:00
committed by GitHub
parent b9dd673518
commit 2ab60750d4
5 changed files with 13 additions and 5 deletions

View File

@@ -41,6 +41,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
path: KernelSU path: KernelSU
fetch-depth: 0
- name: Setup kernel source - name: Setup kernel source
run: | run: |
@@ -139,7 +140,9 @@ jobs:
TITLE: kernel-aarch64-${{ matrix.version }} TITLE: kernel-aarch64-${{ matrix.version }}
run: | run: |
if [ ! -z "${{ secrets.BOT_TOKEN }}" ]; then if [ ! -z "${{ secrets.BOT_TOKEN }}" ]; then
export VERSION=$(git describe --tags --always) cd $GITHUB_WORKSPACE/KernelSU
export VERSION=$(git rev-list --count HEAD)
cd -
OUTDIR=android-kernel/out/android12-5.10/dist OUTDIR=android-kernel/out/android12-5.10/dist
IMAGE_GZ=${{ matrix.version }}-Image.gz IMAGE_GZ=${{ matrix.version }}-Image.gz
BOOT=${{ matrix.version }}-boot.img.zip BOOT=${{ matrix.version }}-boot.img.zip

View File

@@ -29,6 +29,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
path: KernelSU path: KernelSU
fetch-depth: 0
- name: Setup kernel source - name: Setup kernel source
run: | run: |
@@ -96,7 +97,9 @@ jobs:
TITLE: kernel-aarch64-${{ matrix.version }} TITLE: kernel-aarch64-${{ matrix.version }}
run: | run: |
if [ ! -z "${{ secrets.BOT_TOKEN }}" ]; then if [ ! -z "${{ secrets.BOT_TOKEN }}" ]; then
export VERSION=$(git describe --tags --always) cd $GITHUB_WORKSPACE/KernelSU
export VERSION=$(git rev-list --count HEAD)
cd -
OUTDIR=android-kernel/out/android13-5.15/dist OUTDIR=android-kernel/out/android13-5.15/dist
BOOT=${{ matrix.version }}-boot.img.zip BOOT=${{ matrix.version }}-boot.img.zip
zip $BOOT -j -r $OUTDIR/boot.img zip $BOOT -j -r $OUTDIR/boot.img

View File

@@ -84,7 +84,7 @@ jobs:
TITLE: Manager TITLE: Manager
run: | run: |
if [ ! -z "${{ secrets.BOT_TOKEN }}" ]; then if [ ! -z "${{ secrets.BOT_TOKEN }}" ]; then
export VERSION=$(git describe --tags --always) export VERSION=$(git rev-list --count HEAD)
APK=$(find ./app/build/outputs/apk/release -name "*.apk") APK=$(find ./app/build/outputs/apk/release -name "*.apk")
pip3 install python-telegram-bot pip3 install python-telegram-bot
python3 $GITHUB_WORKSPACE/scripts/ksubot.py $APK python3 $GITHUB_WORKSPACE/scripts/ksubot.py $APK

View File

@@ -16,6 +16,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: nttld/setup-ndk@v1 - uses: nttld/setup-ndk@v1
with: with:
ndk-version: r25b ndk-version: r25b
@@ -44,7 +46,7 @@ jobs:
TITLE: SU TITLE: SU
run: | run: |
if [ ! -z "${{ secrets.BOT_TOKEN }}" ]; then if [ ! -z "${{ secrets.BOT_TOKEN }}" ]; then
export VERSION=$(git describe --tags --always) export VERSION=$(git rev-list --count HEAD)
pip3 install python-telegram-bot pip3 install python-telegram-bot
mv ./userspace/su/libs/arm64-v8a/su su-arm64 mv ./userspace/su/libs/arm64-v8a/su su-arm64
mv ./userspace/su/libs/x86_64/su su-x86_64 mv ./userspace/su/libs/x86_64/su su-x86_64

View File

@@ -16,7 +16,7 @@ TITLE = os.environ.get("TITLE")
VERSION = os.environ.get("VERSION") VERSION = os.environ.get("VERSION")
MSG_TEMPLATE = """ MSG_TEMPLATE = """
*{title}* *{title}*
_{version}_ \#ci\_{version}
``` ```
{commit_message} {commit_message}
``` ```