From 869eb08968ba044284b756f9971b004692d3d28c Mon Sep 17 00:00:00 2001 From: SoundDrill31 <84176052+sounddrill31@users.noreply.github.com> Date: Wed, 26 Jun 2024 21:15:04 +0530 Subject: [PATCH 01/10] Telegram: Use custom bash snippet instead of xinthink step --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++---- .github/workflows/selfhosted.yml | 29 +++++++++++++++++++++++++---- .github/workflows/twrp-legacy.yml | 29 +++++++++++++++++++++++++---- .github/workflows/twrp.yml | 29 +++++++++++++++++++++++++---- 4 files changed, 100 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c193f13c..df433db1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -332,8 +332,18 @@ jobs: # Send Build 'start' notification - name: Telegram Notification continue-on-error: true - uses: xinthink/action-telegram@v1.1 - with: + run: | + send_telegram_message() { + local message="$1" + curl -s -X POST \ + https://api.telegram.org/botbotToken/sendMessage \ + -d chat_id=chatId \ + -d text="$message" \ + -d parse_mode="Markdown" + } + + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/sounddrill31/crave_aosp_builder/actions/runs/${{ github.run_id }}" + env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} jobStatus: "Build Started" @@ -422,8 +432,19 @@ jobs: - name: Telegram Notification if: ${{ success() || cancelled() || failure() }} continue-on-error: true - uses: xinthink/action-telegram@v1.1 - with: + run: | + send_telegram_message() { + local message="$1" + curl -s -X POST \ + https://api.telegram.org/botbotToken/sendMessage \ + -d chat_id=chatId \ + -d text="$message" \ + -d parse_mode="Markdown" + } + + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/sounddrill31/crave_aosp_builder/actions/runs/${{ github.run_id }}" + # Todo: error.log link + env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} jobStatus: ${{ job.status }} diff --git a/.github/workflows/selfhosted.yml b/.github/workflows/selfhosted.yml index 0f749b4d..83351409 100644 --- a/.github/workflows/selfhosted.yml +++ b/.github/workflows/selfhosted.yml @@ -308,8 +308,18 @@ jobs: # Send Build 'start' notification - name: Telegram Notification continue-on-error: true - uses: xinthink/action-telegram@v1.1 - with: + run: | + send_telegram_message() { + local message="$1" + curl -s -X POST \ + https://api.telegram.org/botbotToken/sendMessage \ + -d chat_id=chatId \ + -d text="$message" \ + -d parse_mode="Markdown" + } + + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/sounddrill31/crave_aosp_builder/actions/runs/${{ github.run_id }}" + env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} jobStatus: "Build Started" @@ -449,8 +459,19 @@ jobs: - name: Telegram Notification if: ${{ success() || cancelled() || failure() }} continue-on-error: true - uses: xinthink/action-telegram@v1.1 - with: + run: | + send_telegram_message() { + local message="$1" + curl -s -X POST \ + https://api.telegram.org/botbotToken/sendMessage \ + -d chat_id=chatId \ + -d text="$message" \ + -d parse_mode="Markdown" + } + + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/sounddrill31/crave_aosp_builder/actions/runs/${{ github.run_id }}" + # Todo: error.log link + env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} jobStatus: ${{ job.status }} diff --git a/.github/workflows/twrp-legacy.yml b/.github/workflows/twrp-legacy.yml index 158feeac..88ebc538 100644 --- a/.github/workflows/twrp-legacy.yml +++ b/.github/workflows/twrp-legacy.yml @@ -262,8 +262,18 @@ jobs: # Send Build 'start' notification - name: Telegram Notification continue-on-error: true - uses: xinthink/action-telegram@v1.1 - with: + run: | + send_telegram_message() { + local message="$1" + curl -s -X POST \ + https://api.telegram.org/botbotToken/sendMessage \ + -d chat_id=chatId \ + -d text="$message" \ + -d parse_mode="Markdown" + } + + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/sounddrill31/crave_aosp_builder/actions/runs/${{ github.run_id }}" + env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} jobStatus: "Build Started" @@ -351,8 +361,19 @@ jobs: - name: Telegram Notification if: ${{ success() || cancelled() || failure() }} continue-on-error: true - uses: xinthink/action-telegram@v1.1 - with: + run: | + send_telegram_message() { + local message="$1" + curl -s -X POST \ + https://api.telegram.org/botbotToken/sendMessage \ + -d chat_id=chatId \ + -d text="$message" \ + -d parse_mode="Markdown" + } + + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/sounddrill31/crave_aosp_builder/actions/runs/${{ github.run_id }}" + # Todo: error.log link + env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} jobStatus: ${{ job.status }} diff --git a/.github/workflows/twrp.yml b/.github/workflows/twrp.yml index 40ee07fa..01bf524c 100644 --- a/.github/workflows/twrp.yml +++ b/.github/workflows/twrp.yml @@ -262,8 +262,18 @@ jobs: # Send Build 'start' notification - name: Telegram Notification continue-on-error: true - uses: xinthink/action-telegram@v1.1 - with: + run: | + send_telegram_message() { + local message="$1" + curl -s -X POST \ + https://api.telegram.org/botbotToken/sendMessage \ + -d chat_id=chatId \ + -d text="$message" \ + -d parse_mode="Markdown" + } + + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/sounddrill31/crave_aosp_builder/actions/runs/${{ github.run_id }}" + env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} jobStatus: "Build Started" @@ -351,8 +361,19 @@ jobs: - name: Telegram Notification if: ${{ success() || cancelled() || failure() }} continue-on-error: true - uses: xinthink/action-telegram@v1.1 - with: + run: | + send_telegram_message() { + local message="$1" + curl -s -X POST \ + https://api.telegram.org/botbotToken/sendMessage \ + -d chat_id=chatId \ + -d text="$message" \ + -d parse_mode="Markdown" + } + + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/sounddrill31/crave_aosp_builder/actions/runs/${{ github.run_id }}" + # Todo: error.log link + env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} jobStatus: ${{ job.status }} From 12dbdff3691447503ad8ffefff938a6424a26551 Mon Sep 17 00:00:00 2001 From: SoundDrill31 <84176052+sounddrill31@users.noreply.github.com> Date: Wed, 26 Jun 2024 21:18:24 +0530 Subject: [PATCH 02/10] Telegram: Fix token --- .github/workflows/main.yml | 4 ++-- .github/workflows/selfhosted.yml | 4 ++-- .github/workflows/twrp-legacy.yml | 4 ++-- .github/workflows/twrp.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index df433db1..aff41d49 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -336,7 +336,7 @@ jobs: send_telegram_message() { local message="$1" curl -s -X POST \ - https://api.telegram.org/botbotToken/sendMessage \ + https://api.telegram.org/bot$botToken/sendMessage \ -d chat_id=chatId \ -d text="$message" \ -d parse_mode="Markdown" @@ -436,7 +436,7 @@ jobs: send_telegram_message() { local message="$1" curl -s -X POST \ - https://api.telegram.org/botbotToken/sendMessage \ + https://api.telegram.org/bot$botToken/sendMessage \ -d chat_id=chatId \ -d text="$message" \ -d parse_mode="Markdown" diff --git a/.github/workflows/selfhosted.yml b/.github/workflows/selfhosted.yml index 83351409..c0a4eb08 100644 --- a/.github/workflows/selfhosted.yml +++ b/.github/workflows/selfhosted.yml @@ -312,7 +312,7 @@ jobs: send_telegram_message() { local message="$1" curl -s -X POST \ - https://api.telegram.org/botbotToken/sendMessage \ + https://api.telegram.org/bot$botToken/sendMessage \ -d chat_id=chatId \ -d text="$message" \ -d parse_mode="Markdown" @@ -463,7 +463,7 @@ jobs: send_telegram_message() { local message="$1" curl -s -X POST \ - https://api.telegram.org/botbotToken/sendMessage \ + https://api.telegram.org/bot$botToken/sendMessage \ -d chat_id=chatId \ -d text="$message" \ -d parse_mode="Markdown" diff --git a/.github/workflows/twrp-legacy.yml b/.github/workflows/twrp-legacy.yml index 88ebc538..dd1e5c8d 100644 --- a/.github/workflows/twrp-legacy.yml +++ b/.github/workflows/twrp-legacy.yml @@ -266,7 +266,7 @@ jobs: send_telegram_message() { local message="$1" curl -s -X POST \ - https://api.telegram.org/botbotToken/sendMessage \ + https://api.telegram.org/bot$botToken/sendMessage \ -d chat_id=chatId \ -d text="$message" \ -d parse_mode="Markdown" @@ -365,7 +365,7 @@ jobs: send_telegram_message() { local message="$1" curl -s -X POST \ - https://api.telegram.org/botbotToken/sendMessage \ + https://api.telegram.org/bot$botToken/sendMessage \ -d chat_id=chatId \ -d text="$message" \ -d parse_mode="Markdown" diff --git a/.github/workflows/twrp.yml b/.github/workflows/twrp.yml index 01bf524c..defab7dc 100644 --- a/.github/workflows/twrp.yml +++ b/.github/workflows/twrp.yml @@ -266,7 +266,7 @@ jobs: send_telegram_message() { local message="$1" curl -s -X POST \ - https://api.telegram.org/botbotToken/sendMessage \ + https://api.telegram.org/bot$botToken/sendMessage \ -d chat_id=chatId \ -d text="$message" \ -d parse_mode="Markdown" @@ -365,7 +365,7 @@ jobs: send_telegram_message() { local message="$1" curl -s -X POST \ - https://api.telegram.org/botbotToken/sendMessage \ + https://api.telegram.org/bot$botToken/sendMessage \ -d chat_id=chatId \ -d text="$message" \ -d parse_mode="Markdown" From b2b523b56bde4631b47d815c2e54e3ba142dbc10 Mon Sep 17 00:00:00 2001 From: SoundDrill31 <84176052+sounddrill31@users.noreply.github.com> Date: Wed, 26 Jun 2024 21:26:16 +0530 Subject: [PATCH 03/10] Telegram: Fix another variable find replace skill issue --- .github/workflows/main.yml | 4 ++-- .github/workflows/selfhosted.yml | 4 ++-- .github/workflows/twrp-legacy.yml | 4 ++-- .github/workflows/twrp.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aff41d49..1f236d5b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -337,7 +337,7 @@ jobs: local message="$1" curl -s -X POST \ https://api.telegram.org/bot$botToken/sendMessage \ - -d chat_id=chatId \ + -d chat_id=$chatId \ -d text="$message" \ -d parse_mode="Markdown" } @@ -437,7 +437,7 @@ jobs: local message="$1" curl -s -X POST \ https://api.telegram.org/bot$botToken/sendMessage \ - -d chat_id=chatId \ + -d chat_id=$chatId \ -d text="$message" \ -d parse_mode="Markdown" } diff --git a/.github/workflows/selfhosted.yml b/.github/workflows/selfhosted.yml index c0a4eb08..4656e06e 100644 --- a/.github/workflows/selfhosted.yml +++ b/.github/workflows/selfhosted.yml @@ -313,7 +313,7 @@ jobs: local message="$1" curl -s -X POST \ https://api.telegram.org/bot$botToken/sendMessage \ - -d chat_id=chatId \ + -d chat_id=$chatId \ -d text="$message" \ -d parse_mode="Markdown" } @@ -464,7 +464,7 @@ jobs: local message="$1" curl -s -X POST \ https://api.telegram.org/bot$botToken/sendMessage \ - -d chat_id=chatId \ + -d chat_id=$chatId \ -d text="$message" \ -d parse_mode="Markdown" } diff --git a/.github/workflows/twrp-legacy.yml b/.github/workflows/twrp-legacy.yml index dd1e5c8d..fc392876 100644 --- a/.github/workflows/twrp-legacy.yml +++ b/.github/workflows/twrp-legacy.yml @@ -267,7 +267,7 @@ jobs: local message="$1" curl -s -X POST \ https://api.telegram.org/bot$botToken/sendMessage \ - -d chat_id=chatId \ + -d chat_id=$chatId \ -d text="$message" \ -d parse_mode="Markdown" } @@ -366,7 +366,7 @@ jobs: local message="$1" curl -s -X POST \ https://api.telegram.org/bot$botToken/sendMessage \ - -d chat_id=chatId \ + -d chat_id=$chatId \ -d text="$message" \ -d parse_mode="Markdown" } diff --git a/.github/workflows/twrp.yml b/.github/workflows/twrp.yml index defab7dc..09150444 100644 --- a/.github/workflows/twrp.yml +++ b/.github/workflows/twrp.yml @@ -267,7 +267,7 @@ jobs: local message="$1" curl -s -X POST \ https://api.telegram.org/bot$botToken/sendMessage \ - -d chat_id=chatId \ + -d chat_id=$chatId \ -d text="$message" \ -d parse_mode="Markdown" } @@ -366,7 +366,7 @@ jobs: local message="$1" curl -s -X POST \ https://api.telegram.org/bot$botToken/sendMessage \ - -d chat_id=chatId \ + -d chat_id=$chatId \ -d text="$message" \ -d parse_mode="Markdown" } From d195c7e3992bb86f3e7564d2f91b0b5e53a66f47 Mon Sep 17 00:00:00 2001 From: SoundDrill31 <84176052+sounddrill31@users.noreply.github.com> Date: Wed, 26 Jun 2024 21:31:05 +0530 Subject: [PATCH 04/10] Telegram: Make it repo-agnostic So it doesn't link to my repo for another person's fork --- .github/workflows/main.yml | 4 ++-- .github/workflows/selfhosted.yml | 4 ++-- .github/workflows/twrp-legacy.yml | 4 ++-- .github/workflows/twrp.yml | 4 ++-- scripts/code-server.sh | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1f236d5b..f3a1dc5d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -342,7 +342,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/sounddrill31/crave_aosp_builder/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -442,7 +442,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/sounddrill31/crave_aosp_builder/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/selfhosted.yml b/.github/workflows/selfhosted.yml index 4656e06e..ae1629e5 100644 --- a/.github/workflows/selfhosted.yml +++ b/.github/workflows/selfhosted.yml @@ -318,7 +318,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/sounddrill31/crave_aosp_builder/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -469,7 +469,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/sounddrill31/crave_aosp_builder/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/twrp-legacy.yml b/.github/workflows/twrp-legacy.yml index fc392876..ff22a34e 100644 --- a/.github/workflows/twrp-legacy.yml +++ b/.github/workflows/twrp-legacy.yml @@ -272,7 +272,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/sounddrill31/crave_aosp_builder/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -371,7 +371,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/sounddrill31/crave_aosp_builder/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/twrp.yml b/.github/workflows/twrp.yml index 09150444..3687c8a6 100644 --- a/.github/workflows/twrp.yml +++ b/.github/workflows/twrp.yml @@ -272,7 +272,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/sounddrill31/crave_aosp_builder/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -371,7 +371,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/sounddrill31/crave_aosp_builder/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/scripts/code-server.sh b/scripts/code-server.sh index 7f281301..57b7958b 100644 --- a/scripts/code-server.sh +++ b/scripts/code-server.sh @@ -17,7 +17,7 @@ if [ ! -f ~/.config/code-server/config.yaml ] || ! grep -q "bind-addr: 0.0.0.0:5 if [[ $REPLY =~ ^[Yy]$ ]] || [[ $1 == "--quiet" ]]; then echo "Downloading..." rm ~/.config/code-server/config.yaml 2> /dev/null - curl -o ~/.config/code-server/config.yaml https://raw.githubusercontent.com/sounddrill31/crave_aosp_builder/main/configs/code-server/config.yaml + curl -o ~/.config/code-server/config.yaml https://raw.githubusercontent.com/${{ github.repository }}/main/configs/code-server/config.yaml else echo "Skipping..." exit 1 From 7b95d93c4d2051e55ff90d22015f936c7faa83aa Mon Sep 17 00:00:00 2001 From: SoundDrill31 <84176052+sounddrill31@users.noreply.github.com> Date: Wed, 26 Jun 2024 21:43:15 +0530 Subject: [PATCH 05/10] Telegram: Playing around with escaping --- .github/workflows/main.yml | 4 ++-- .github/workflows/selfhosted.yml | 4 ++-- .github/workflows/twrp-legacy.yml | 4 ++-- .github/workflows/twrp.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f3a1dc5d..9bbd9ea0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -342,7 +342,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -442,7 +442,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/selfhosted.yml b/.github/workflows/selfhosted.yml index ae1629e5..7de7b69b 100644 --- a/.github/workflows/selfhosted.yml +++ b/.github/workflows/selfhosted.yml @@ -318,7 +318,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -469,7 +469,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/twrp-legacy.yml b/.github/workflows/twrp-legacy.yml index ff22a34e..5e034b67 100644 --- a/.github/workflows/twrp-legacy.yml +++ b/.github/workflows/twrp-legacy.yml @@ -272,7 +272,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -371,7 +371,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/twrp.yml b/.github/workflows/twrp.yml index 3687c8a6..b3c1e7cf 100644 --- a/.github/workflows/twrp.yml +++ b/.github/workflows/twrp.yml @@ -272,7 +272,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -371,7 +371,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} From 763a025ad3927c912b78b6c60fbcfea34b230814 Mon Sep 17 00:00:00 2001 From: SoundDrill31 <84176052+sounddrill31@users.noreply.github.com> Date: Wed, 26 Jun 2024 21:46:24 +0530 Subject: [PATCH 06/10] Telegram: Fix jobStatus variable --- .github/workflows/main.yml | 2 +- .github/workflows/selfhosted.yml | 2 +- .github/workflows/twrp-legacy.yml | 2 +- .github/workflows/twrp.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9bbd9ea0..a5c0418b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -442,7 +442,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/selfhosted.yml b/.github/workflows/selfhosted.yml index 7de7b69b..5d8f0bf6 100644 --- a/.github/workflows/selfhosted.yml +++ b/.github/workflows/selfhosted.yml @@ -469,7 +469,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/twrp-legacy.yml b/.github/workflows/twrp-legacy.yml index 5e034b67..be107bf9 100644 --- a/.github/workflows/twrp-legacy.yml +++ b/.github/workflows/twrp-legacy.yml @@ -371,7 +371,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/twrp.yml b/.github/workflows/twrp.yml index b3c1e7cf..989d609f 100644 --- a/.github/workflows/twrp.yml +++ b/.github/workflows/twrp.yml @@ -371,7 +371,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $status %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} From 617cee4f72f60d6777bcda49f3bab25eba05a1fb Mon Sep 17 00:00:00 2001 From: SoundDrill31 <84176052+sounddrill31@users.noreply.github.com> Date: Wed, 26 Jun 2024 21:47:23 +0530 Subject: [PATCH 07/10] Telegram: Use echo and sed to deal with escaping --- .github/workflows/main.yml | 4 ++-- .github/workflows/selfhosted.yml | 4 ++-- .github/workflows/twrp-legacy.yml | 4 ++-- .github/workflows/twrp.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a5c0418b..eee50d28 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -342,7 +342,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${github.repository}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -442,7 +442,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${github.repository}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/selfhosted.yml b/.github/workflows/selfhosted.yml index 5d8f0bf6..9f3daccd 100644 --- a/.github/workflows/selfhosted.yml +++ b/.github/workflows/selfhosted.yml @@ -318,7 +318,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${github.repository}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -469,7 +469,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${github.repository}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/twrp-legacy.yml b/.github/workflows/twrp-legacy.yml index be107bf9..56c8549a 100644 --- a/.github/workflows/twrp-legacy.yml +++ b/.github/workflows/twrp-legacy.yml @@ -272,7 +272,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${github.repository}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -371,7 +371,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${github.repository}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/twrp.yml b/.github/workflows/twrp.yml index 989d609f..572fb12e 100644 --- a/.github/workflows/twrp.yml +++ b/.github/workflows/twrp.yml @@ -272,7 +272,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${github.repository}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -371,7 +371,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/${github.repository//_/\\_}/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${github.repository}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} From b2508b2a033523d1a43302dd5792509fd864345d Mon Sep 17 00:00:00 2001 From: SoundDrill31 <84176052+sounddrill31@users.noreply.github.com> Date: Wed, 26 Jun 2024 21:50:31 +0530 Subject: [PATCH 08/10] Telegram: Hope this fixes it --- .github/workflows/main.yml | 4 ++-- .github/workflows/selfhosted.yml | 4 ++-- .github/workflows/twrp-legacy.yml | 4 ++-- .github/workflows/twrp.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eee50d28..8c2a83ce 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -342,7 +342,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${github.repository}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -442,7 +442,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${github.repository}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/selfhosted.yml b/.github/workflows/selfhosted.yml index 9f3daccd..ce4a7582 100644 --- a/.github/workflows/selfhosted.yml +++ b/.github/workflows/selfhosted.yml @@ -318,7 +318,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${github.repository}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -469,7 +469,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${github.repository}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/twrp-legacy.yml b/.github/workflows/twrp-legacy.yml index 56c8549a..4f222967 100644 --- a/.github/workflows/twrp-legacy.yml +++ b/.github/workflows/twrp-legacy.yml @@ -272,7 +272,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${github.repository}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -371,7 +371,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${github.repository}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/twrp.yml b/.github/workflows/twrp.yml index 572fb12e..50a4fae5 100644 --- a/.github/workflows/twrp.yml +++ b/.github/workflows/twrp.yml @@ -272,7 +272,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${github.repository}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -371,7 +371,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${github.repository}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} From 1c363c4fd2e97712c08b4ae3fba6a8504e773a64 Mon Sep 17 00:00:00 2001 From: SoundDrill31 <84176052+sounddrill31@users.noreply.github.com> Date: Wed, 26 Jun 2024 21:55:17 +0530 Subject: [PATCH 09/10] Telegram: Switch delimiters --- .github/workflows/main.yml | 4 ++-- .github/workflows/selfhosted.yml | 4 ++-- .github/workflows/twrp-legacy.yml | 4 ++-- .github/workflows/twrp.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8c2a83ce..812f0bc4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -342,7 +342,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -442,7 +442,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/selfhosted.yml b/.github/workflows/selfhosted.yml index ce4a7582..636180db 100644 --- a/.github/workflows/selfhosted.yml +++ b/.github/workflows/selfhosted.yml @@ -318,7 +318,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -469,7 +469,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/twrp-legacy.yml b/.github/workflows/twrp-legacy.yml index 4f222967..e98eea9f 100644 --- a/.github/workflows/twrp-legacy.yml +++ b/.github/workflows/twrp-legacy.yml @@ -272,7 +272,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -371,7 +371,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/twrp.yml b/.github/workflows/twrp.yml index 50a4fae5..f023d9b8 100644 --- a/.github/workflows/twrp.yml +++ b/.github/workflows/twrp.yml @@ -272,7 +272,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -371,7 +371,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed '/_/\\_/g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} From ca4c65a835f2a69350dbec0c5278e7d8be078f90 Mon Sep 17 00:00:00 2001 From: SoundDrill31 <84176052+sounddrill31@users.noreply.github.com> Date: Wed, 26 Jun 2024 22:08:24 +0530 Subject: [PATCH 10/10] Telegram: Fix bash skill issue --- .github/workflows/main.yml | 4 ++-- .github/workflows/selfhosted.yml | 4 ++-- .github/workflows/twrp-legacy.yml | 4 ++-- .github/workflows/twrp.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 812f0bc4..cce562b0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -342,7 +342,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -442,7 +442,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/selfhosted.yml b/.github/workflows/selfhosted.yml index 636180db..8c63d28b 100644 --- a/.github/workflows/selfhosted.yml +++ b/.github/workflows/selfhosted.yml @@ -318,7 +318,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -469,7 +469,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/twrp-legacy.yml b/.github/workflows/twrp-legacy.yml index e98eea9f..3784bb6d 100644 --- a/.github/workflows/twrp-legacy.yml +++ b/.github/workflows/twrp-legacy.yml @@ -272,7 +272,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -371,7 +371,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }} diff --git a/.github/workflows/twrp.yml b/.github/workflows/twrp.yml index f023d9b8..de13e484 100644 --- a/.github/workflows/twrp.yml +++ b/.github/workflows/twrp.yml @@ -272,7 +272,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has been queued %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" env: chatId: ${{ secrets.TELEGRAM_TO }} botToken: ${{ secrets.TELEGRAM_TOKEN }} @@ -371,7 +371,7 @@ jobs: -d parse_mode="Markdown" } - send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" + send_telegram_message "Crave ProjectID: $PROJECTID %0ABuild for ${{ github.event.inputs.DEVICE_NAME }} has status: $jobStatus %0ACheck Progress at: %0Ahttps://github.com/$(echo "${{ github.repository }}" | sed 's@_@\\_@g')/actions/runs/${{ github.run_id }}" # Todo: error.log link env: chatId: ${{ secrets.TELEGRAM_TO }}