mirror of https://github.com/OpenIPC/firmware.git
[CI] Move TG_OPTIONS to common env variables
parent
a2ae002ff9
commit
9f9d833a73
|
@ -22,6 +22,7 @@ env:
|
|||
MAX_ROOTFS_SIZE: 0x500000
|
||||
MAX_KERNEL_SIZE_ULTIMATE: 0x300000
|
||||
MAX_ROOTFS_SIZE_ULTIMATE: 0xa00000
|
||||
TG_OPTIONS: -s --connect-timeout 30 --retry 10 --verbose
|
||||
|
||||
jobs:
|
||||
toolchain:
|
||||
|
@ -523,7 +524,6 @@ jobs:
|
|||
TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }}
|
||||
if: ${{ !env.ACT && failure() && github.event_name != 'pull_request' }}
|
||||
run: |
|
||||
TG_OPTIONS="-s --connect-timeout 30 --retry 10 --verbose"
|
||||
TG_NOTIFY="${TG_NOTIFY:=Warning, Buildroot compiling error... ${{ matrix.platform }} (${{ matrix.release }})}"
|
||||
TG_HEADER=$(echo -e "\r\n$TG_NOTIFY \r\n\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9A\xA0 GitHub Actions")
|
||||
curl $TG_OPTIONS -H "Content-Type: multipart/form-data" -X POST https://api.telegram.org/bot$TG_TOKEN/sendMessage \
|
||||
|
@ -568,7 +568,6 @@ jobs:
|
|||
TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }}
|
||||
TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }}
|
||||
run: |
|
||||
TG_OPTIONS="-s --connect-timeout 30 --max-time 30"
|
||||
TG_HEADER=$(echo -e "\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9C\x85 GitHub Actions")
|
||||
curl $TG_OPTIONS -H "Content-Type: multipart/form-data" -X POST https://api.telegram.org/bot$TG_TOKEN/sendDocument \
|
||||
-F chat_id=$TG_CHANNEL -F document="@$NORFW_PATH" -F caption="$TG_HEADER"
|
||||
|
|
Loading…
Reference in New Issue