-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tiago Castro <[email protected]>
- Loading branch information
1 parent
a838852
commit 0e38d0d
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!" | ||
|