From 8b3758bd8bafa8ba18cace669457bc4a550bbefc Mon Sep 17 00:00:00 2001 From: Tim Riley Date: Tue, 5 Nov 2024 20:01:19 +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 38ae484..39007a8 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: @@ -37,3 +27,11 @@ jobs: bundler-cache: true - name: Run the test suite run: bundle exec rake + + workflow-keepalive: + if: github.event_name == 'schedule' + runs-on: ubuntu-latest + permissions: + actions: write + steps: + - uses: liskin/gh-workflow-keepalive@v1