ci: update message hint (#44)

This commit is contained in:
Ylarod
2023-01-12 09:21:01 +08:00
committed by GitHub
parent e37d97c7c7
commit acd6f44c7e
4 changed files with 38 additions and 7 deletions

View File

@@ -110,13 +110,15 @@ jobs:
MESSAGE_THREAD_ID: ${{ secrets.MESSAGE_THREAD_ID }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
COMMIT_URL: ${{ github.event.head_commit.url }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
TITLE: kernel-aarch64-${{ matrix.version }}
run: |
if [ ! -z "${{ secrets.BOT_TOKEN }}" ]; then
OUTDIR=android-kernel/out/android12-5.10/dist
IMAGE_GZ=kernel-aarch64-${{ matrix.version }}-Image.gz
BOOT=kernel-aarch64-${{ matrix.version }}-boot.img.zip
BOOT_LZ4=kernel-aarch64-${{ matrix.version }}-boot-lz4.img.zip
BOOT_GZ=kernel-aarch64-${{ matrix.version }}-boot-gz.img.zip
IMAGE_GZ=${{ matrix.version }}-Image.gz
BOOT=${{ matrix.version }}-boot.img.zip
BOOT_LZ4=${{ matrix.version }}-boot-lz4.img.zip
BOOT_GZ=${{ matrix.version }}-boot-gz.img.zip
mv $OUTDIR/Image.gz $IMAGE_GZ
zip $BOOT -j -r $OUTDIR/boot.img
zip $BOOT_LZ4 -j -r $OUTDIR/boot-gz.img

View File

@@ -64,10 +64,12 @@ jobs:
MESSAGE_THREAD_ID: ${{ secrets.MESSAGE_THREAD_ID }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
COMMIT_URL: ${{ github.event.head_commit.url }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
TITLE: kernel-aarch64-${{ matrix.version }}
run: |
if [ ! -z "${{ secrets.BOT_TOKEN }}" ]; then
OUTDIR=android-kernel/out/android13-5.15/dist
BOOT=kernel-aarch64-${{ matrix.version }}-boot.img.zip
BOOT=${{ matrix.version }}-boot.img.zip
zip $BOOT -j -r $OUTDIR/boot.img
pip3 install python-telegram-bot
python3 $GITHUB_WORKSPACE/KernelSU/scripts/ksubot.py $BOOT

View File

@@ -5,6 +5,7 @@ on:
paths:
- '.github/workflows/build-su.yml'
- 'userspace/**'
- 'scripts/ksubot.py'
pull_request:
branches: [ "main" ]
paths:
@@ -35,6 +36,8 @@ jobs:
MESSAGE_THREAD_ID: ${{ secrets.MESSAGE_THREAD_ID }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
COMMIT_URL: ${{ github.event.head_commit.url }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
TITLE: SU
run: |
if [ ! -z "${{ secrets.BOT_TOKEN }}" ]; then
pip3 install python-telegram-bot