From 8711000fb2213f88fafc6eed9b0b7b7b8d0330b6 Mon Sep 17 00:00:00 2001 From: Tim Riley Date: Tue, 5 Nov 2024 19:30:08 +1100 Subject: [PATCH] Add keepalive workflow --- .github/workflows/ci.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70d6635f..5e09373a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,21 +1,11 @@ name: ci -"on": +on: push: - paths: - - ".github/workflows/ci.yml" - - "lib/**" - - "*.gemspec" - - "spec/**" - - "Rakefile" - - "Gemfile" - - ".rubocop.yml" pull_request: - branches: - - main + create: schedule: - cron: "30 4 * * *" - create: jobs: tests: @@ -42,3 +32,11 @@ jobs: run: bundle install --jobs 4 --retry 3 - name: Run all tests run: script/ci + + workflow-keepalive: + if: github.event_name == 'schedule' + runs-on: ubuntu-latest + permissions: + actions: write + steps: + - uses: liskin/gh-workflow-keepalive@v1