Skip to content

Commit f15a96a

Browse files
committed
Enable telegram notification on other versions
Add version to the notification text
1 parent b428180 commit f15a96a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
GITHUB_RUN_ID: ${{ github.run_id }}
9191

9292
- name: Notify via Telegram
93-
if: always() && steps.prepare.outcome == 'success' && github.event_name == 'schedule' && inputs.tx_project == 'python-newest'
93+
if: always() && steps.prepare.outcome == 'success' && github.event_name == 'schedule'
9494
uses: appleboy/telegram-action@v0.1.1
9595
with:
9696
to: ${{ secrets.TELEGRAM_TO }}
@@ -149,7 +149,7 @@ jobs:
149149
GITHUB_RUN_ID: ${{ github.run_id }}
150150

151151
- name: Notify via Telegram
152-
if: always() && steps.prepare.outcome == 'success' && github.event_name == 'schedule' && inputs.tx_project == 'python-newest'
152+
if: always() && steps.prepare.outcome == 'success' && github.event_name == 'schedule'
153153
uses: appleboy/telegram-action@v0.1.1
154154
with:
155155
to: ${{ secrets.TELEGRAM_TO }}

.github/workflows/sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ on:
1717
required: true
1818

1919
env:
20-
PYDOC_VERSION: ${{ inputs.version }}
2120
PYDOC_LANGUAGE: pt_BR
2221
PYDOC_TX_PROJECT: ${{ inputs.tx_project }}
22+
PYDOC_VERSION: ${{ inputs.version }}
2323
TX_CLI_VERSION: '1.6.16'
2424

2525
jobs:

scripts/prepmsg.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ die() { echo "$0: error: $*" >&2; exit 1; }
77
[ $# -ne 2 ] && die "Expected 1 input and 1 output files, got $#"
88
[ ! -f "$1" ] && die "Input file $1 not found, skipping."
99
[ -z "${PYDOC_REPO}" ] && die "PYDOC_REPO is empty."
10+
[ -z "${PYDOC_VERSION}" ] && die "PYDOC_VERSION is empty."
1011
[ -z "${GITHUB_RUN_ID}" ] && die "GITHUB_RUN_ID is empty."
1112
[ -z "${GITHUB_JOB}" ] && die "GITHUB_JOB is empty."
1213

@@ -34,6 +35,6 @@ fi
3435

3536
[[ $(cat aux) == "" ]] && die "Unexpected empty output message."
3637

37-
echo "❌ *${GITHUB_JOB}* (ID [${GITHUB_RUN_ID}]($URL)):" > "$output";
38+
echo "❌ *${PYDOC_VERSION} ${GITHUB_JOB}* (ID [${GITHUB_RUN_ID}]($URL)):" > "$output";
3839
{ echo ""; cat aux; echo ""; } >> "$output"
3940
rm aux

0 commit comments

Comments
 (0)