Skip to content

Commit

Permalink
ci(keep alive): Add keep alive workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
julienloizelet committed May 15, 2024
1 parent 84c9477 commit f30a5b1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
ddev php -r "echo phpversion('memcached');"
- name: Clone PHP lib Crowdsec files
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: my-code/crowdsec-bouncer-lib

Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Keep Alive
on:

schedule:
- cron: '0 3 * * 4'

permissions:
actions: write

jobs:
keep-alive:

name: Keep Alive
runs-on: ubuntu-latest

steps:

- name: Clone project files
uses: actions/checkout@v4

# keepalive-workflow keeps GitHub from turning off tests after 60 days
- uses: gautamkrishnar/keepalive-workflow@v2
with:
time_elapsed: 45
workflow_files: "test-suite.yml"

4 changes: 3 additions & 1 deletion .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
paths-ignore:
- '**.md'
workflow_dispatch:
schedule:
- cron: '15 3 * * 4'

permissions:
contents: read
Expand Down Expand Up @@ -69,7 +71,7 @@ jobs:
ddev php -r "echo phpversion('memcached');"
- name: Clone PHP lib Crowdsec files
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: my-code/crowdsec-bouncer-lib

Expand Down

0 comments on commit f30a5b1

Please sign in to comment.