From 18149df7c2480ec90e6c859278f3160041342739 Mon Sep 17 00:00:00 2001 From: Stefan Topfstedt Date: Wed, 6 Dec 2023 08:48:59 -0800 Subject: [PATCH 1/2] re-run github actions on a timer. --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba15f10..f9dba4e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,10 @@ name: Moodle Plugin CI -on: [push, pull_request] +on: + push: + pull_request: + schedule: + - cron: '33 2 * * 1' # weekly, on Monday morning jobs: test: From 6d30c03d454b1b2f459f6962e69e2faa4a5d16dc Mon Sep 17 00:00:00 2001 From: Stefan Topfstedt Date: Thu, 7 Dec 2023 09:07:16 -0800 Subject: [PATCH 2/2] rig up Slack. report failures into a slack channel. --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9dba4e..00edadb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,8 @@ on: pull_request: schedule: - cron: '33 2 * * 1' # weekly, on Monday morning +env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ILIOS_DEPLOYMENT_WEBHOOK_URL }} jobs: test: @@ -118,3 +120,9 @@ jobs: - name: Mark cancelled jobs as failed. if: ${{ cancelled() }} run: exit 1 + + - uses: act10ns/slack@v2.0.0 + with: + status: ${{ job.status }} + message: Moodle Plugin CI failed {{ env.GITHUB_SERVER_URL }}/{{ env.GITHUB_REPOSITORY }}/actions/runs/{{ env.GITHUB_RUN_ID }} + if: failure()