fix if condition in workflow 3.0

This commit is contained in:
Il'ya (Marshal) 2021-04-25 18:51:46 +02:00
parent e904ca0da6
commit 7c2c3d2520

View file

@ -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