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