fix if condition in workflow

This commit is contained in:
Il'ya (Marshal) 2021-04-25 18:36:22 +02:00
parent 294826fcda
commit f98f2c090b

View file

@ -24,12 +24,8 @@ jobs:
run: |
pip install -r requirements.txt
- name: Inspect contexts.
run: |
echo "${{ toJson(github) }}"
- name: Send alert to Telegram channel.
if: github.actor == 'GitHub-Action'
if: github.event.head_commit.author == 'GitHub Action'
env:
COMMIT_SHA: ${{ github.sha }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}