silverstripe-simple/.github/workflows/keepalive.yml

22 lines
494 B
YAML
Raw Normal View History

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