mirror of
https://github.com/certbot/certbot.git
synced 2026-04-22 22:59:39 -04:00
Making the weekly message a little more useful. --------- Co-authored-by: Brad Warren <bmw@users.noreply.github.com>
25 lines
990 B
YAML
25 lines
990 B
YAML
name: Weekly Github Update
|
|
|
|
on:
|
|
schedule:
|
|
# Every week on Thursday @ 10:00
|
|
- cron: "0 10 * * 4"
|
|
workflow_dispatch:
|
|
jobs:
|
|
send-mattermost-message:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Create Mattermost Message
|
|
run: |
|
|
DATE=$(date --date="7 days ago" +"%Y-%m-%d")
|
|
echo "ASSIGNED_PRS=https://github.com/pulls?q=is%3Apr+is%3Aopen+updated%3A%3E%3D${DATE}+assignee%3A*+user%3Acertbot" >> $GITHUB_ENV
|
|
echo "UPDATED_URL=https://github.com/issues?q=is%3Aissue+is%3Aopen+sort%3Acomments-desc+updated%3A%3E%3D${DATE}+user%3Acertbot" >> $GITHUB_ENV
|
|
- uses: mattermost/action-mattermost-notify@master
|
|
with:
|
|
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
|
|
MATTERMOST_CHANNEL: private-certbot
|
|
TEXT: |
|
|
## Updates In the Past Week
|
|
- Most commented in the last week: [link](${{ env.UPDATED_URL }})
|
|
- Updated (assigned) PRs in the last week: [link](${{ env.ASSIGNED_PRS }})
|