Skip to content

Commit

Permalink
add slack notif
Browse files Browse the repository at this point in the history
  • Loading branch information
bigorn0 committed Jul 23, 2024
1 parent 66a6feb commit 2a5e83e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/notif-push-to-slack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
channel-id: 'develop-direct-pushes'
Expand All @@ -30,4 +31,4 @@ jobs:
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 2a5e83e

Please sign in to comment.