We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8db7aa commit 3f07b1eCopy full SHA for 3f07b1e
.github/workflows/notif-push-to-slack.yml
@@ -7,12 +7,13 @@ on:
7
jobs:
8
notify:
9
runs-on: ubuntu-latest
10
- if: github.event.pusher.name == '${{ secrets.COMMIT_PUSH_SOURCE }}'
11
env:
12
AUTHOR: ${{ github.event.pusher.name }}
+ COMMIT_PUSH_SOURCE: ${{ secrets.COMMIT_PUSH_SOURCE }}
13
steps:
14
- name: notify slack
15
id: slack
16
+ if: ${{ env.AUTHOR == env.COMMIT_PUSH_SOURCE }}
17
uses: slackapi/[email protected]
18
with:
19
channel-id: 'develop-direct-pushes'
@@ -30,4 +31,4 @@ jobs:
30
31
]
32
}
33
- SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
34
+ SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
0 commit comments