From 0b39d5fc00524b8dbb1ce3a77842274a66c12865 Mon Sep 17 00:00:00 2001 From: Anupama Dharmajan Date: Thu, 16 Dec 2021 14:37:26 +1100 Subject: [PATCH] Add reusable workflows --- .github/workflows/ci.yml | 7 +++++++ .github/workflows/moodle-release.yml | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/moodle-release.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..aaaed2a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,7 @@ +name: Run all tests for Moodle 33+ + +on: [push, pull_request] + +jobs: + workflow_group_33_plus_ci: + uses: catalyst/catalyst-moodle-workflows/.github/workflows/group-33-plus-ci.yml@main diff --git a/.github/workflows/moodle-release.yml b/.github/workflows/moodle-release.yml new file mode 100644 index 0000000..7148a8a --- /dev/null +++ b/.github/workflows/moodle-release.yml @@ -0,0 +1,20 @@ +# +# Whenever version.php is changed, add the latest version +# to the Moodle Plugins directory at https://moodle.org/plugins +# +name: MOODLE_33PLUS - Releasing in the Plugins directory + +on: + push: + branches: + - MOODLE_33PLUS + paths: + - 'version.php' + +jobs: + workflow_group_35_plus_release: + uses: catalyst/catalyst-moodle-workflows/.github/workflows/group-35-plus-release.yml@main + with: + plugin_name: auth_userkey + secrets: + moodle_org_token: ${{ secrets.MOODLE_ORG_TOKEN }}