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