From 150a8152a67a7f857fa8ec3ed8b52d8f2ceecb77 Mon Sep 17 00:00:00 2001 From: JingyaHuang Date: Tue, 17 Oct 2023 09:45:26 +0000 Subject: [PATCH] try again --- .github/workflows/test_onnxruntime_train.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test_onnxruntime_train.yml b/.github/workflows/test_onnxruntime_train.yml index 23f9a88040f..2cc87546e9f 100644 --- a/.github/workflows/test_onnxruntime_train.yml +++ b/.github/workflows/test_onnxruntime_train.yml @@ -1,17 +1,18 @@ name: ONNX Runtime Training / Test ORTTrainer -on: +on: + workflow_dispatch: + secrets: + AWS_ACCESS_KEY_ID: { required: true, type: string } + AWS_SECRET_ACCESS_KEY: { required: true, type: string } schedule: - cron: 0 1 */3 * * # at 1am every 3 days pull_request: types: [opened, synchronize, reopened, labeled] -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true - jobs: start-runner: + if: ${{ (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') || contains( github.event.pull_request.labels.*.name, 'training')}} name: Start self-hosted EC2 runner runs-on: ubuntu-latest env: