From 34d26ff1aa343b0cc980afbf2f40c1d5b6a781ea Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Thu, 25 Jan 2024 13:53:19 +0100 Subject: [PATCH] Fixed issue with RFC-Cron (#69) It was improperly set to run every minute after 11. I changed it to run every weekday only once after 12. Also, added status badge for the job in the Readme so we can preview there that the job is running: [![RFC Cron](https://github.com/polkadot-fellows/RFCs/actions/workflows/rfc-referenda-notifications.yml/badge.svg)](https://github.com/polkadot-fellows/RFCs/actions/workflows/rfc-referenda-notifications.yml) --- .github/workflows/rfc-referenda-notifications.yml | 5 +++-- README.md | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rfc-referenda-notifications.yml b/.github/workflows/rfc-referenda-notifications.yml index b56b73099..d8fdf2739 100644 --- a/.github/workflows/rfc-referenda-notifications.yml +++ b/.github/workflows/rfc-referenda-notifications.yml @@ -3,11 +3,12 @@ name: RFC Cron on: workflow_dispatch: schedule: - - cron: '* 11 * * *' + - cron: '0 12 * * 1,2,3,4,5' jobs: - test_run: + rfc_notification: runs-on: ubuntu-latest + name: Notify on referendas steps: - name: Get last run run: | diff --git a/README.md b/README.md index d1cbc13ad..9c9ba2005 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,8 @@ Problems, requirements, and descriptions in RFC text should be stated using the ## Bots +[![RFC Cron](https://github.com/polkadot-fellows/RFCs/actions/workflows/rfc-referenda-notifications.yml/badge.svg)](https://github.com/polkadot-fellows/RFCs/actions/workflows/rfc-referenda-notifications.yml) + The repository provides a bot for: * Proposing RFCs on chain in a referenda to let the fellowship vote on the RFC. The referenda can only be created by accounts that are part of the fellowship.