Update release-lte-mod.yml
This commit is contained in:
18
.github/workflows/release-lte-mod.yml
vendored
18
.github/workflows/release-lte-mod.yml
vendored
@@ -68,12 +68,18 @@ jobs:
|
|||||||
CHAT_ID_1: ${{ secrets.TELEGRAM_CHAT_ID_1_GROUP }}
|
CHAT_ID_1: ${{ secrets.TELEGRAM_CHAT_ID_1_GROUP }}
|
||||||
CHAT_ID_2: ${{ secrets.TELEGRAM_CHAT_ID_2 }}
|
CHAT_ID_2: ${{ secrets.TELEGRAM_CHAT_ID_2 }}
|
||||||
run: |
|
run: |
|
||||||
# Send to first chat
|
# Send to first chat (with error checking)
|
||||||
curl -F document=@"p9_lte_combos_mod_v${{ env.MOD_VERSION }}.zip" \
|
if ! curl -s -f -o /dev/null -F document=@"p9_lte_combos_mod_v${{ env.MOD_VERSION }}.zip" \
|
||||||
-F caption="New LTE Module Release ${{ env.RELEASE_TAG }}" \
|
-F caption="New LTE Module Release ${{ env.RELEASE_TAG }}" \
|
||||||
"https://api.telegram.org/bot${BOT_TOKEN}/sendDocument?chat_id=${CHAT_ID_1}"
|
"https://api.telegram.org/bot${BOT_TOKEN}/sendDocument?chat_id=${CHAT_ID_1}"; then
|
||||||
|
echo "Failed to send to first chat"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Send to second chat
|
# Send to second chat (with error checking)
|
||||||
curl -F document=@"p9_lte_combos_mod_v${{ env.MOD_VERSION }}.zip" \
|
if ! curl -s -f -o /dev/null -F document=@"p9_lte_combos_mod_v${{ env.MOD_VERSION }}.zip" \
|
||||||
-F caption="New LTE Module Release ${{ env.RELEASE_TAG }}" \
|
-F caption="New LTE Module Release ${{ env.RELEASE_TAG }}" \
|
||||||
"https://api.telegram.org/bot${BOT_TOKEN}/sendDocument?chat_id=${CHAT_ID_2}"
|
"https://api.telegram.org/bot${BOT_TOKEN}/sendDocument?chat_id=${CHAT_ID_2}"; then
|
||||||
|
echo "Failed to send to second chat"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user