Merge pull request #465 from mattermost/publish-calls #226
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: notify-community-server | |
on: | |
push: | |
branches: | |
- production | |
paths: | |
- 'plugins.json' | |
jobs: | |
notify: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Generate webhook payload | |
shell: bash | |
run: | | |
.github/workflows/notify-mm-blog.sh | |
- name: Notify channel 1 | |
uses: mattermost/action-mattermost-notify@b7d118e440bf2749cd18a4a8c88e7092e696257a #v2.0.0 | |
with: | |
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL_1 }} | |
PAYLOAD: $(cat mattermost.json) | |
- name: Notify channel 2 | |
uses: mattermost/action-mattermost-notify@b7d118e440bf2749cd18a4a8c88e7092e696257a #v2.0.0 | |
with: | |
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL_2 }} | |
PAYLOAD: $(cat mattermost.json) |