2023-08-09 16:18:48 +12:00
|
|
|
name: Keepalive
|
|
|
|
|
|
|
|
on:
|
2024-05-17 14:06:00 +12:00
|
|
|
# At 5:25 PM UTC, on day 2 of the month
|
2023-08-09 16:18:48 +12:00
|
|
|
schedule:
|
2024-05-17 14:06:00 +12:00
|
|
|
- cron: '25 17 2 * *'
|
2023-08-09 16:18:48 +12:00
|
|
|
workflow_dispatch:
|
|
|
|
|
2024-05-16 10:23:40 +12:00
|
|
|
permissions: {}
|
|
|
|
|
2023-08-09 16:18:48 +12:00
|
|
|
jobs:
|
|
|
|
keepalive:
|
|
|
|
name: Keepalive
|
2024-05-16 10:23:40 +12:00
|
|
|
# Only run cron on the silverstripe account
|
|
|
|
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
|
2023-08-09 16:18:48 +12:00
|
|
|
runs-on: ubuntu-latest
|
2024-05-16 10:23:40 +12:00
|
|
|
permissions:
|
|
|
|
actions: write
|
2023-08-09 16:18:48 +12:00
|
|
|
steps:
|
|
|
|
- name: Keepalive
|
|
|
|
uses: silverstripe/gha-keepalive@v1
|