forked from pytorch/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.03 KB
/
update-test-times.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
31
32
33
name: Update test times
on:
schedule:
# Every day at 3:05am UTC
- cron: "5 3 * * *"
# Have the ability to trigger this job manually
workflow_dispatch:
defaults:
run:
working-directory: torchci
jobs:
update-slow-stats:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- run: yarn install --frozen-lockfile
- run: yarn --silent node scripts/updateTestTimes.mjs > test-times.json
env:
ROCKSET_API_KEY: ${{ secrets.ROCKSET_API_KEY }}
- name: Push file to this repository
uses: dmnemec/copy_file_to_another_repo_action@5f40763ccee2954067adba7fb8326e4df33bcb92
env:
API_TOKEN_GITHUB: ${{ secrets.GITHUB_TOKEN }}
with:
source_file: 'torchci/test-times.json'
destination_repo: 'pytorch/test-infra'
destination_folder: 'stats'
destination_branch: generated-stats
user_email: '[email protected]'
user_name: 'PyTorch Test Infra'
commit_message: 'Updating test time stats'