Update notify_weekly.yaml #13
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: Weekly Github Update | |
on: | |
push: | |
#schedule: | |
# Every week on Thursday @ 1PM | |
# - cron: "0 1 * * 4" | |
#- cron: "*/5 * * * *" #Test Cron | |
jobs: | |
send-mattermost-message: | |
runs-on: ubuntu-latest | |
env: | |
DATE: $(date --date="7 days ago" +"%Y-%m-%d") | |
MERGED_URL: "https://github.com/pulls?q=merged%3A%3E${DATE}+org%3Acertbot+" | |
UPDATED_URL: "https://github.com/pulls?q=updated%3A%3E${DATE}+org%3Acertbot+" | |
steps: | |
- uses: mattermost/action-mattermost-notify@master | |
with: | |
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} | |
PAYLOAD: |- | |
{ | |
"text": "test text", | |
"channel": "private certbot", | |
"username": "${{ github.triggering_actor }}", | |
"icon": "https://cdn3.iconfinder.com/data/icons/system-basic-vol-4-1/20/icon-note-attention-alt3-512.png" | |
} |