fix if condition in workflow

This commit is contained in:
Il'ya (Marshal) 2021-04-25 18:35:47 +02:00
parent 0f5ca80154
commit 1ab9fd9dea

View file

@ -26,12 +26,8 @@ jobs:
git checkout main
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 }}