From 7c2c3d252027d7dea57693616760bbc64035b1a7 Mon Sep 17 00:00:00 2001 From: "Il'ya (Marshal)" Date: Sun, 25 Apr 2021 18:51:46 +0200 Subject: [PATCH] fix if condition in workflow 3.0 --- .github/workflows/make_and_send_alert.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/make_and_send_alert.yml b/.github/workflows/make_and_send_alert.yml index 8cf1eceac6..4d7f978a2b 100644 --- a/.github/workflows/make_and_send_alert.yml +++ b/.github/workflows/make_and_send_alert.yml @@ -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