From 6975e32998c1bc2ca98e08557e0bac52373b97a4 Mon Sep 17 00:00:00 2001 From: ohemorange Date: Wed, 11 Sep 2024 11:11:47 -0700 Subject: [PATCH] Fix weekly mattermost notifier (#10009) --- .github/workflows/notify_weekly.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/notify_weekly.yaml b/.github/workflows/notify_weekly.yaml index 3a758db83..466f67b90 100644 --- a/.github/workflows/notify_weekly.yaml +++ b/.github/workflows/notify_weekly.yaml @@ -11,15 +11,15 @@ jobs: 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 + DATE=$(date --date="7 days ago" +"%Y-%m-%d") + echo "MERGED_URL=https://github.com/pulls?q=merged%3A%3E${DATE}+org%3Acertbot" >> $GITHUB_ENV + echo "UPDATED_URL=https://github.com/pulls?q=updated%3A%3E${DATE}+org%3Acertbot" >> $GITHUB_ENV - uses: mattermost/action-mattermost-notify@master - env: + with: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} + TEXT: | + ## Updates Across Certbot Repos + - Certbot team members SHOULD look at: [link](${{ env.MERGED_URL }}) + - Certbot team members MAY also want to look at: [link](${{ env.UPDATED_URL }}) + - 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. + - 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).