diff --git a/.github/workflows/createWebNews.yaml b/.github/workflows/createWebNews.yaml index f34466937..e55843390 100644 --- a/.github/workflows/createWebNews.yaml +++ b/.github/workflows/createWebNews.yaml @@ -11,6 +11,9 @@ on: - Official default: "Beta" + schedule: + - cron: "59 10 * * 1-5" # 10:59 AM, Monday through Friday + jobs: post_news: runs-on: ubuntu-latest @@ -69,7 +72,7 @@ jobs: --data-urlencode "body=$MESSAGE" - name: Post message on Official Website - if: ${{ github.event.inputs.select_web == 'Official' }} + if: ${{ github.event.inputs.select_web == 'Official' || github.event_name == 'schedule' }} env: MIKROE_OFFICIAL_URL: ${{ secrets.MIKROE_OFFICIAL_URL }} run: | diff --git a/.github/workflows/notify.yaml b/.github/workflows/notify.yaml index 0fb6006e7..0847bbea3 100644 --- a/.github/workflows/notify.yaml +++ b/.github/workflows/notify.yaml @@ -16,6 +16,9 @@ on: description: Notify Boards/Cards default: false + schedule: + - cron: "0 11 * * 1-5" # 11:00 AM, Monday through Friday + jobs: notify: runs-on: ubuntu-latest @@ -62,12 +65,12 @@ jobs: $MATTERMOST_WEBHOOK_URL - name: Build Boards/Cards Message with Python - if: ${{ github.event.inputs.notify_components == 'true' }} + if: ${{ github.event.inputs.notify_components == 'true' || github.event_name == 'schedule' }} run: | python -u scripts/build_message.py > message.txt - name: Send Boards/Cards notification to Mattermost - if: ${{ github.event.inputs.notify_components == 'true' }} + if: ${{ github.event.inputs.notify_components == 'true' || github.event_name == 'schedule' }} env: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} run: |