mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-11-22 15:26:43 +01:00
fix if condition in workflow 3.0
This commit is contained in:
parent
e904ca0da6
commit
7c2c3d2520
1 changed files with 4 additions and 3 deletions
7
.github/workflows/make_and_send_alert.yml
vendored
7
.github/workflows/make_and_send_alert.yml
vendored
|
@ -20,14 +20,15 @@ jobs:
|
|||
with:
|
||||
python-version: 3.9
|
||||
|
||||
- name: Install dependencies.
|
||||
- name: Output head commit author
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
echo "${{ github.event.head_commit.author }}"
|
||||
|
||||
- name: Send alert to Telegram channel.
|
||||
- name: Install dependencies and send alert to Telegram channel.
|
||||
if: ${{ github.event.head_commit.author == 'GitHub Action' }}
|
||||
env:
|
||||
COMMIT_SHA: ${{ github.sha }}
|
||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
python make_and_send_alert.py
|
||||
|
|
Loading…
Reference in a new issue