diff --git a/.github/workflows/add-prs-to-project.yml b/.github/workflows/add-prs-to-project.yml new file mode 100644 index 0000000..2d3f41a --- /dev/null +++ b/.github/workflows/add-prs-to-project.yml @@ -0,0 +1,22 @@ +name: Add new PRs to github project + +on: + pull_request_target: + types: + - opened + - ready_for_review + +permissions: {} + +jobs: + addprtoproject: + name: Add PR to GitHub Project + # Only run on the silverstripe account + if: github.repository_owner == 'silverstripe' + runs-on: ubuntu-latest + steps: + - name: Add PR to github project + uses: silverstripe/gha-add-pr-to-project@v1 + with: + app_id: ${{ vars.PROJECT_PERMISSIONS_APP_ID }} + private_key: ${{ secrets.PROJECT_PERMISSIONS_APP_PRIVATE_KEY }} diff --git a/.github/workflows/dispatch-ci.yml b/.github/workflows/dispatch-ci.yml index 4706965..4b1c72c 100644 --- a/.github/workflows/dispatch-ci.yml +++ b/.github/workflows/dispatch-ci.yml @@ -1,17 +1,17 @@ name: Dispatch CI on: - # At 6:30 AM UTC, only on Monday and Tuesday + # At 2:10 PM UTC, only on Saturday and Sunday schedule: - - cron: '30 6 * * 1,2' + - cron: '10 14 * * 6,0' permissions: {} jobs: dispatch-ci: name: Dispatch CI - # Only run cron on the colymba account - if: (github.event_name == 'schedule' && github.repository_owner == 'colymba') || (github.event_name != 'schedule') + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest permissions: contents: read diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml index 0550cda..ca54f71 100644 --- a/.github/workflows/keepalive.yml +++ b/.github/workflows/keepalive.yml @@ -1,9 +1,9 @@ name: Keepalive on: - # At 3:15 AM UTC, on day 16 of the month + # At 11:55 AM UTC, on day 28 of the month schedule: - - cron: '15 3 16 * *' + - cron: '55 11 28 * *' workflow_dispatch: permissions: {} @@ -11,8 +11,8 @@ permissions: {} jobs: keepalive: name: Keepalive - # Only run cron on the colymba account - if: (github.event_name == 'schedule' && github.repository_owner == 'colymba') || (github.event_name != 'schedule') + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest permissions: actions: write diff --git a/.github/workflows/merge-up.yml b/.github/workflows/merge-up.yml index fe80cb5..4bdb1fa 100644 --- a/.github/workflows/merge-up.yml +++ b/.github/workflows/merge-up.yml @@ -1,9 +1,9 @@ name: Merge-up on: - # At 6:30 AM UTC, only on Friday + # At 2:10 PM UTC, only on Wednesday schedule: - - cron: '30 6 * * 5' + - cron: '10 14 * * 3' workflow_dispatch: permissions: {} @@ -11,8 +11,8 @@ permissions: {} jobs: merge-up: name: Merge-up - # Only run cron on the colymba account - if: (github.event_name == 'schedule' && github.repository_owner == 'colymba') || (github.event_name != 'schedule') + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest permissions: contents: write diff --git a/.github/workflows/tag-patch-release.yml b/.github/workflows/tag-patch-release.yml index 388ee98..dc2db2b 100644 --- a/.github/workflows/tag-patch-release.yml +++ b/.github/workflows/tag-patch-release.yml @@ -14,8 +14,8 @@ permissions: {} jobs: tagpatchrelease: name: Tag patch release - # Only run cron on the colymba account - if: (github.event_name == 'schedule' && github.repository_owner == 'colymba') || (github.event_name != 'schedule') + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest permissions: contents: write diff --git a/.github/workflows/update-js.yml b/.github/workflows/update-js.yml index 296712a..9e9f991 100644 --- a/.github/workflows/update-js.yml +++ b/.github/workflows/update-js.yml @@ -2,17 +2,17 @@ name: Update JS on: workflow_dispatch: - # At 10:50 AM UTC, on day 1 of the month, only in March and September + # At 6:30 PM UTC, on day 1 of the month, only in March and September schedule: - - cron: '50 10 1 3,9 *' + - cron: '30 18 1 3,9 *' permissions: {} jobs: update-js: name: Update JS - # Only run cron on the colymba account - if: (github.event_name == 'schedule' && github.repository_owner == 'colymba') || (github.event_name != 'schedule') + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest permissions: contents: write