From 8a7b507d415d67d2182678c5fa9399de207707e0 Mon Sep 17 00:00:00 2001 From: Jeanne Angeles Franco Date: Mon, 13 Mar 2023 12:44:23 -0700 Subject: [PATCH] Add workflow to run test on schedule (#3076) --- .github/workflows/trigger-test-cron.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/trigger-test-cron.yml diff --git a/.github/workflows/trigger-test-cron.yml b/.github/workflows/trigger-test-cron.yml new file mode 100644 index 0000000000..61f315bfd9 --- /dev/null +++ b/.github/workflows/trigger-test-cron.yml @@ -0,0 +1,18 @@ +name: trigger-test-cron + +# This workflow will run every two hours to determine the frequency of test failures +on: + schedule: + # * is a special character in YAML so you have to quote this string + - cron: '0 */2 * * *' + +jobs: + trigger-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Trigger test workflow + run: gh workflow run test.yml + env: + GITHUB_TOKEN: ${{ github.token }}