From 173b832a8fc27eaa80bae6629d446367349f9572 Mon Sep 17 00:00:00 2001 From: Alexis Date: Tue, 28 Feb 2023 12:38:53 -0800 Subject: [PATCH 1/4] Create Weekly Notification Message for Certbot Team Composes Mattermost message to team channel --- .github/workflows/notify_weekly.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/notify_weekly.yaml diff --git a/.github/workflows/notify_weekly.yaml b/.github/workflows/notify_weekly.yaml new file mode 100644 index 000000000..d259a8021 --- /dev/null +++ b/.github/workflows/notify_weekly.yaml @@ -0,0 +1,25 @@ +name: Weekly Github Update + +on: + schedule: + # Every week on Thursday @ 1:00 + - cron: "0 1 * * 4" +jobs: + send-mattermost-message: + runs-on: ubuntu-latest + + steps: + - name: Create Mattermost Message + run: | + 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+" + echo "{\"text\":\"## Updates Across Certbot Repos\n\n + - Certbot team members SHOULD look at: [link]($MERGED_URL)\n\n + - Certbot team members MAY also want to look at: [link]($UPDATED_URL)\n\n + - Want to Discuss something today? Place it [here](https://docs.google.com/document/d/17YMUbtC1yg6MfiTMwT8zVm9LmO-cuGVBom0qFn8XJBM/edit?usp=sharing) and we can meet today on Zoom.\n\n + - The key words SHOULD and MAY in this message are to be interpreted as described in [RFC 8147](https://www.rfc-editor.org/rfc/rfc8174). \" + }" > mattermost.json + - uses: mattermost/action-mattermost-notify@master + env: + MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} From 44be66eed9c17ee1bbea5ee5923560c694804922 Mon Sep 17 00:00:00 2001 From: Alexis Date: Tue, 28 Feb 2023 17:38:23 -0800 Subject: [PATCH 2/4] Update .github/workflows/notify_weekly.yaml --- .github/workflows/notify_weekly.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/notify_weekly.yaml b/.github/workflows/notify_weekly.yaml index d259a8021..77e09a3e5 100644 --- a/.github/workflows/notify_weekly.yaml +++ b/.github/workflows/notify_weekly.yaml @@ -3,7 +3,7 @@ name: Weekly Github Update on: schedule: # Every week on Thursday @ 1:00 - - cron: "0 1 * * 4" + - cron: "0 13 * * 4" jobs: send-mattermost-message: runs-on: ubuntu-latest From 10b0fb6da0edb0002b9e2bfd62c3a4c3a80ac589 Mon Sep 17 00:00:00 2001 From: Alexis Date: Tue, 28 Feb 2023 17:38:43 -0800 Subject: [PATCH 3/4] Update .github/workflows/notify_weekly.yaml --- .github/workflows/notify_weekly.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/notify_weekly.yaml b/.github/workflows/notify_weekly.yaml index 77e09a3e5..c8c64da3f 100644 --- a/.github/workflows/notify_weekly.yaml +++ b/.github/workflows/notify_weekly.yaml @@ -2,7 +2,7 @@ name: Weekly Github Update on: schedule: - # Every week on Thursday @ 1:00 + # Every week on Thursday @ 13:00 - cron: "0 13 * * 4" jobs: send-mattermost-message: From 87f8eca03347ad84103b8fc8804161b02edec230 Mon Sep 17 00:00:00 2001 From: Alexis Date: Tue, 28 Feb 2023 17:39:17 -0800 Subject: [PATCH 4/4] Update .github/workflows/notify_weekly.yaml Remove trailing char --- .github/workflows/notify_weekly.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/notify_weekly.yaml b/.github/workflows/notify_weekly.yaml index c8c64da3f..3a758db83 100644 --- a/.github/workflows/notify_weekly.yaml +++ b/.github/workflows/notify_weekly.yaml @@ -12,8 +12,8 @@ jobs: - name: Create Mattermost Message run: | 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+" + 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" echo "{\"text\":\"## Updates Across Certbot Repos\n\n - Certbot team members SHOULD look at: [link]($MERGED_URL)\n\n - Certbot team members MAY also want to look at: [link]($UPDATED_URL)\n\n