Skip to content

Commit 2ffd76f

Browse files
committed
add slack notif
1 parent b7c0057 commit 2ffd76f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/notif-push-to-slack.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ on:
77
jobs:
88
notify:
99
runs-on: ubuntu-latest
10-
if: github.event.pusher.name == '${{ secrets.COMMIT_PUSH_SOURCE }}'
1110
env:
1211
AUTHOR: ${{ github.event.pusher.name }}
12+
COMMIT_PUSH_SOURCE: ${{ secrets.COMMIT_PUSH_SOURCE }}
1313
steps:
1414
- name: notify slack
1515
id: slack
16+
if: ${{ env.AUTHOR == env.COMMIT_PUSH_SOURCE }}
1617
uses: slackapi/slack-github-action@v1.26.0
1718
with:
1819
channel-id: 'develop-direct-pushes'
@@ -30,4 +31,4 @@ jobs:
3031
]
3132
}
3233
env:
33-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
34+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 commit comments

Comments
 (0)