From fab866946cc9f5f0db2e3ca182e7c47cfcf5eae5 Mon Sep 17 00:00:00 2001 From: "Il'ya (Marshal)" Date: Sun, 25 Apr 2021 18:55:12 +0200 Subject: [PATCH] fix if condition in workflow 3.0 or mb 4.0 --- .github/workflows/make_and_send_alert.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/make_and_send_alert.yml b/.github/workflows/make_and_send_alert.yml index 4d7f978a2b..8cad2eb925 100644 --- a/.github/workflows/make_and_send_alert.yml +++ b/.github/workflows/make_and_send_alert.yml @@ -20,12 +20,8 @@ jobs: with: python-version: 3.9 - - name: Output head commit author - run: | - echo "${{ github.event.head_commit.author }}" - - name: Install dependencies and send alert to Telegram channel. - if: ${{ github.event.head_commit.author == 'GitHub Action' }} + if: ${{ github.event.head_commit.author.name == 'GitHub Action' }} env: COMMIT_SHA: ${{ github.sha }} TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}