Skip to content

Commit 86aa0e9

Browse files
authored
NO-SNOW: helper job to trigger daily jobs so reduce input for release (#4256)
1 parent b58417e commit 86aa0e9

1 file changed

Lines changed: 76 additions & 0 deletions

File tree

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Trigger Daily Tests on Branch
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
description: "Branch name to run tests on"
8+
required: true
9+
default: "main"
10+
11+
permissions:
12+
actions: write
13+
14+
jobs:
15+
trigger-tests:
16+
name: Trigger all daily test workflows on branch "${{ inputs.branch }}"
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Trigger daily_precommit.yml
20+
uses: actions/github-script@v7
21+
with:
22+
script: |
23+
await github.rest.actions.createWorkflowDispatch({
24+
owner: context.repo.owner,
25+
repo: context.repo.repo,
26+
workflow_id: 'daily_precommit.yml',
27+
ref: '${{ inputs.branch }}',
28+
});
29+
console.log('Triggered daily_precommit.yml on branch: ${{ inputs.branch }}');
30+
31+
- name: Trigger daily_modin_precommit_py310.yml
32+
uses: actions/github-script@v7
33+
with:
34+
script: |
35+
await github.rest.actions.createWorkflowDispatch({
36+
owner: context.repo.owner,
37+
repo: context.repo.repo,
38+
workflow_id: 'daily_modin_precommit_py310.yml',
39+
ref: '${{ inputs.branch }}',
40+
});
41+
console.log('Triggered daily_modin_precommit_py310.yml on branch: ${{ inputs.branch }}');
42+
43+
- name: Trigger daily_modin_precommit_py311_py312.yml
44+
uses: actions/github-script@v7
45+
with:
46+
script: |
47+
await github.rest.actions.createWorkflowDispatch({
48+
owner: context.repo.owner,
49+
repo: context.repo.repo,
50+
workflow_id: 'daily_modin_precommit_py311_py312.yml',
51+
ref: '${{ inputs.branch }}',
52+
});
53+
console.log('Triggered daily_modin_precommit_py311_py312.yml on branch: ${{ inputs.branch }}');
54+
55+
- name: Trigger daily_jupyter_nb_test.yml
56+
uses: actions/github-script@v7
57+
with:
58+
script: |
59+
await github.rest.actions.createWorkflowDispatch({
60+
owner: context.repo.owner,
61+
repo: context.repo.repo,
62+
workflow_id: 'daily_jupyter_nb_test.yml',
63+
ref: '${{ inputs.branch }}',
64+
});
65+
console.log('Triggered daily_jupyter_nb_test.yml on branch: ${{ inputs.branch }}');
66+
67+
- name: Summary
68+
run: |
69+
echo "## Triggered Workflows" >> $GITHUB_STEP_SUMMARY
70+
echo "" >> $GITHUB_STEP_SUMMARY
71+
echo "Branch: \`${{ inputs.branch }}\`" >> $GITHUB_STEP_SUMMARY
72+
echo "" >> $GITHUB_STEP_SUMMARY
73+
echo "- daily_precommit.yml" >> $GITHUB_STEP_SUMMARY
74+
echo "- daily_modin_precommit_py310.yml" >> $GITHUB_STEP_SUMMARY
75+
echo "- daily_modin_precommit_py311_py312.yml" >> $GITHUB_STEP_SUMMARY
76+
echo "- daily_jupyter_nb_test.yml" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)