Skip to content

Commit

Permalink
Merge pull request #19 from ilios/gha_scheduler
Browse files Browse the repository at this point in the history
re-run github actions on a timer.
  • Loading branch information
stopfstedt authored Dec 7, 2023
2 parents 002615b + 6d30c03 commit bbefecc
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Moodle Plugin CI

on: [push, pull_request]
on:
push:
pull_request:
schedule:
- cron: '33 2 * * 1' # weekly, on Monday morning
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ILIOS_DEPLOYMENT_WEBHOOK_URL }}

jobs:
test:
Expand Down Expand Up @@ -114,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()

0 comments on commit bbefecc

Please sign in to comment.