Skip to content

Commit

Permalink
MNT Run module-standardiser (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Nov 13, 2024
1 parent d2c91c6 commit da29c31
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 18 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/add-prs-to-project.yml
Original file line number Diff line number Diff line change
@@ -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 }}
8 changes: 4 additions & 4 deletions .github/workflows/dispatch-ci.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
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: {}

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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/merge-up.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
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: {}

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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tag-patch-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/update-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da29c31

Please sign in to comment.