Merge branch '5.0' into 5

This commit is contained in:
Steve Boyd 2023-03-30 13:31:51 +13:00
commit 003745750e
3 changed files with 17 additions and 6 deletions

View File

@ -4,13 +4,8 @@ on:
push: push:
pull_request: pull_request:
workflow_dispatch: workflow_dispatch:
# Every Sunday at 2:10pm UTC
schedule:
- cron: '10 14 * * 0'
jobs: jobs:
ci: ci:
name: CI name: CI
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1 uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1

16
.github/workflows/dispatch-ci.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Dispatch CI
on:
# At 2:10 PM UTC, only on Sunday and Monday
schedule:
- cron: '10 14 * * 0,1'
jobs:
dispatch-ci:
name: Dispatch CI
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
- name: Dispatch CI
uses: silverstripe/gha-dispatch-ci@v1

View File

@ -39,7 +39,7 @@ dependencies:
cat << 'EOF' > _ss_environment.php cat << 'EOF' > _ss_environment.php
<?php <?php
define('SS_DATABASE_SERVER', '127.0.0.1'); define('SS_DATABASE_SERVER', '127.0.0.1');
define('SS_DATABASE_CLASS', 'MySQLPDODatabase'); define('SS_DATABASE_CLASS', 'MySQLDatabase');
define('SS_DATABASE_USERNAME', 'ubuntu'); define('SS_DATABASE_USERNAME', 'ubuntu');
define('SS_DATABASE_PASSWORD', ''); define('SS_DATABASE_PASSWORD', '');
define('SS_ENVIRONMENT_TYPE', 'dev'); define('SS_ENVIRONMENT_TYPE', 'dev');