From 8d2a325d597fb6d61be738027715574b05c0b8b3 Mon Sep 17 00:00:00 2001 From: Ugo Bechameil Date: Tue, 23 Jul 2024 15:16:15 +0200 Subject: [PATCH] add slack notif --- .github/workflows/notif-push-to-slack.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/notif-push-to-slack.yml b/.github/workflows/notif-push-to-slack.yml index 1dc8fa9..61315cd 100644 --- a/.github/workflows/notif-push-to-slack.yml +++ b/.github/workflows/notif-push-to-slack.yml @@ -7,12 +7,13 @@ on: jobs: notify: runs-on: ubuntu-latest - if: github.event.pusher.name == '${{ secrets.COMMIT_PUSH_SOURCE }}' env: AUTHOR: ${{ github.event.pusher.name }} + COMMIT_PUSH_SOURCE: ${{ secrets.COMMIT_PUSH_SOURCE }} steps: - name: notify slack id: slack + if: ${{ env.AUTHOR == env.COMMIT_PUSH_SOURCE }} uses: slackapi/slack-github-action@v1.26.0 with: channel-id: 'develop-direct-pushes' @@ -30,4 +31,4 @@ jobs: ] } env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} \ No newline at end of file