forked from mlflow/mlflow
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (26 loc) · 950 Bytes
/
rerun.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Cross version tests sometimes fail due to transient errors. This workflow reruns failed tests.
name: rerun-cross-version-tests
on:
schedule:
# Run this workflow daily at 17:00 UTC (4 hours after cross-version-tests.yml workflow)
- cron: "0 17 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
set-matrix:
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.repository == 'mlflow-automation/mlflow'
permissions:
actions: write # to rerun workflows
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const rerun = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/rerun.js`);
await rerun({ context, github, workflow_id: "cross-version-tests.yml" });