From 3cd9cba542cef55eebd550c9a1cc296693bd3632 Mon Sep 17 00:00:00 2001 From: Max Rakitin Date: Sat, 14 Oct 2023 18:29:41 -0400 Subject: [PATCH] CI: tweaks on triggers of the ci/cd workflow and add a keep-alive step --- .github/workflows/cicd.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index bf51bf85..af528036 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,6 +1,19 @@ name: Continuous Testing and Docs Publication -on: [push] +on: + pull_request: + branches: + - dev + types: + - opened + - ready_for_review + push: + branches: + - dev + workflow_dispatch: + schedule: + # At 02:00 on Sunday: https://crontab.guru/#0_2_*_*_0 + - cron: "0 2 * * 0" concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} @@ -15,7 +28,7 @@ jobs: steps: - name: Checkout this repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: lfs: true @@ -46,7 +59,7 @@ jobs: steps: - name: Checkout this repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: lfs: true @@ -105,3 +118,10 @@ jobs: invalidation: /* no-cache: true private: true + + - name: Github Action to keep the schedules alive after inactivity + uses: gautamkrishnar/keepalive-workflow@v1 + with: + committer_username: exabyte-io-bot + committer_email: info@exabyte.io + time_elapsed: 50 # days