Skip to content

Commit

Permalink
test: add github actions cron
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Castro <[email protected]>
  • Loading branch information
tiagolobocastro committed Jan 8, 2025
1 parent a838852 commit 0e38d0d
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/nightly-dispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Nightly CI Dispatcher

on:
#push:
# branches:
# - develop
schedule:
- cron: "0 0 * * *"

jobs:
nightly-ci-matrix:
name: Nightly CI
runs-on: ubuntu-latest
strategy:
matrix:
branch:
- develop
- release/2.7
repo: [mayastor, mayastor-control-plane, mayastor-extensions]
fail-fast: false
steps:
- name: Awaiting
id: dispatch
uses: the-actions-org/workflow-dispatch@v4
with:
token: ${{ secrets.ORG_CI_GITHUB }}
repo: openebs/${{ matrix.repo }}
ref: ${{ matrix.branch }}
workflow: nightly-ci.yml
wait-for-completion: true
wait-for-completion-timeout: 4h
display-workflow-run-url-timeout: 1h
- name: Print Status
if: always()
run: |
echo "Workflow for repo ${{ matrix.repo }} and branch ${{ matrix.branch }} completed with status: ${{ steps.dispatch.outputs.workflow-conclusion }}"
echo "For more details, see ${{ steps.dispatch.outputs.workflow-url }}"
nightly-ci:
name: Collect All Runs
needs: nightly-ci-matrix
runs-on: ubuntu-latest
if: always()
steps:
- name: Workflow Complete
if: always()
run: echo "All matrix jobs have completed!"

0 comments on commit 0e38d0d

Please sign in to comment.