Skip to content

Update test times

Update test times #915

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'